[Bug] TagManagePage 빌드 에러 - service_name null 인덱싱 타입 에러 #45

Closed
opened 2026-03-02 13:44:46 +00:00 by seonkyu.kim · 0 comments
Owner

설명

TagManagePage.tsxloadTabCounts 함수에서 item.service_namestring | null 타입인데, nullRecord 인덱스 키로 사용하여 TS2538 빌드 에러 발생.

재현

Jenkins develop 브랜치 빌드 시:

src/features/tag/pages/TagManagePage.tsx(81,16): error TS2538: Type 'null' cannot be used as an index type.
src/features/tag/pages/TagManagePage.tsx(81,45): error TS2538: Type 'null' cannot be used as an index type.

해결 방안

item.service_name ?? "미지정"으로 null 폴백 처리

체크리스트

  • null 폴백 처리
  • tsc 빌드 확인
## 설명 `TagManagePage.tsx`의 `loadTabCounts` 함수에서 `item.service_name`이 `string | null` 타입인데, `null`을 `Record` 인덱스 키로 사용하여 `TS2538` 빌드 에러 발생. ## 재현 Jenkins develop 브랜치 빌드 시: ``` src/features/tag/pages/TagManagePage.tsx(81,16): error TS2538: Type 'null' cannot be used as an index type. src/features/tag/pages/TagManagePage.tsx(81,45): error TS2538: Type 'null' cannot be used as an index type. ``` ## 해결 방안 `item.service_name ?? "미지정"`으로 null 폴백 처리 ## 체크리스트 - [ ] null 폴백 처리 - [ ] tsc 빌드 확인
seonkyu.kim added the
Priority
High
Status
In Progress
Type
Bug
labels 2026-03-02 13:44:56 +00:00
seonkyu.kim added this to the Phase 1 - 프로젝트 초기 설정 milestone 2026-03-02 13:44:57 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-03-02 13:50:45 +00:00
Sign in to join this conversation.
No description provided.