fix: TagManagePage service_name null 인덱싱 타입 에러 수정 (#45)
All checks were successful
SPMS_BO/pipeline/head This commit looks good

Reviewed-on: https://git.ipstein.myds.me/SPMS/SPMS_WEB/pulls/46
This commit is contained in:
김선규 2026-03-02 13:50:26 +00:00
commit 2bc3fe87c8

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;