fix: TagManagePage service_name null 인덱싱 타입 에러 수정 (#45)
All checks were successful
SPMS_BO/pipeline/head This commit looks good
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:
commit
2bc3fe87c8
|
|
@ -78,7 +78,8 @@ export default function TagManagePage() {
|
|||
const counts: Record<string, number> = {};
|
||||
let total = 0;
|
||||
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++;
|
||||
}
|
||||
counts["전체"] = total;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user