feat: LineBarChar.tsx Null 체크 추가

This commit is contained in:
2025-07-24 22:00:58 +09:00
parent d5c967e9ad
commit 8353800dac
@@ -94,6 +94,7 @@ export default function LineBarchart({
// 데이터의 최대값 계산
const getMaxValue = (data: any[], keyPrefix: string) => {
if (!data || data.length === 0) return 0;
return Math.max(...data.map(item =>
Object.keys(item)
.filter(key => key.includes(keyPrefix))