fix: TagManagePage service_name null 인덱싱 타입 에러 수정 (#45) #46

Merged
seonkyu.kim merged 1 commits from fix/SPMS-45-tag-null-index into develop 2026-03-02 13:50:29 +00:00
Showing only changes of commit 3f97982e4f - Show all commits

View File

@ -78,7 +78,8 @@ export default function TagManagePage() {
const counts: Record<string, number> = {}; const counts: Record<string, number> = {};
let total = 0; let total = 0;
for (const item of items) { for (const item of items) {
counts[item.service_name] = (counts[item.service_name] ?? 0) + 1; const key = item.service_name ?? "미지정";
counts[key] = (counts[key] ?? 0) + 1;
total++; total++;
} }
counts["전체"] = total; counts["전체"] = total;