Skip to content

fix: [TA-249] activeRegions 타입 불일치 — Location은 객체를 넣는데 string[]로 선언/전송 - #142

Merged
seorinn merged 1 commit into
developfrom
TA-249-active-regions-type
Jun 30, 2026
Merged

seorinn merged 1 commit into
developfrom
TA-249-active-regions-type

Conversation

@seorinn

@seorinn seorinn commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

변경 사항

activeRegions의 선언을 실제 런타임 값인 Region({category,name})[]로 통일. 동작·전송 포맷 변화 없음(선언만 정정).

  • Location: Props locs/setLocs를 Region[]로(기존 any[]/string[] 제거), 내부 map any 정리
  • useEventForm: activeRegions 상태 Region[] + 편집 복원 nullish 가드
  • PromotionBody.activeRegions, PhotographerRegistrationBody/ModifyPhotographerProfileBody.activeRegions → Region[]
  • EditPhotographerProfile, SignUp/MoreInfo, SignUp: 상태/시그니처를 Region[]로 정합

배경

Location은 {category,name} 객체를 push/전송하는데 선언은 string[]였고, Location.locs: any[]가 불일치를 가렸음. 서버 응답(PromotionDetail/PhotographerDetail)도 Region[]이라 객체가 단일 소스.

검증

  • 서버 전송 포맷·편집 복원·토글(참조 동등성) 무변화 정적 확인
  • tsc 통과(전 체인 정합), 전체 41 suites / 175 tests 통과
  • Opus 코드리뷰: 머지 가능. P2(복원 nullish 가드) 반영

Closes TA-249

@vercel

vercel Bot commented Jun 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
damaba Ready Ready Preview, Comment Jun 30, 2026 2:41am

@seorinn
seorinn marked this pull request as ready for review June 30, 2026 02:42
@seorinn
seorinn merged commit 6d60e10 into develop Jun 30, 2026
3 checks passed
@seorinn
seorinn deleted the TA-249-active-regions-type branch June 30, 2026 02:42

This branch was successfully deployed

1 active deployment
Preview — 577764d9 Deployed Jun 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant