st: fix: cell style 속성 추가, grid 데이터 변환 공통함수 추가

This commit is contained in:
2026-02-03 15:29:45 +09:00
parent 15dd319b21
commit 9eb40c46e5
11 changed files with 58 additions and 21 deletions
@@ -0,0 +1,11 @@
import type { SewerageSupplyRateItem } from "@/entities/statistics/model/statistics-input-interface";
export function toGridRows(items: SewerageSupplyRateItem[]): Record<string, string | number>[] {
return items.map((item) => {
const row: Record<string, string | number> = {};
for (const [key, value] of Object.entries(item)) {
row[key] = value === null || value === undefined ? "" : value;
}
return row;
});
};