From f088a2d995ae27225bb5b25cc2ea8c2a5feb5b93 Mon Sep 17 00:00:00 2001 From: dohyeons Date: Tue, 21 Oct 2025 13:10:03 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C=20?= =?UTF-8?q?=EB=B7=B0=EC=96=B4=20=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/dashboard/DashboardViewer.tsx | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/frontend/components/dashboard/DashboardViewer.tsx b/frontend/components/dashboard/DashboardViewer.tsx index 3172d2ad..5438b0c0 100644 --- a/frontend/components/dashboard/DashboardViewer.tsx +++ b/frontend/components/dashboard/DashboardViewer.tsx @@ -161,7 +161,6 @@ interface DashboardViewerProps { */ export function DashboardViewer({ elements, - dashboardId, refreshInterval, backgroundColor = "#f9fafb", resolution = "fhd", @@ -281,19 +280,6 @@ export function DashboardViewer({ return () => clearInterval(interval); }, [refreshInterval, loadAllData]); - // 요소가 없는 경우 - if (elements.length === 0) { - return ( -
-
-
📊
-
표시할 요소가 없습니다
-
대시보드 편집기에서 차트나 위젯을 추가해보세요
-
-
- ); - } - // 모바일에서 요소를 자연스러운 읽기 순서로 정렬 (왼쪽→오른쪽, 위→아래) const sortedElements = useMemo(() => { if (!isMobile) return elements; @@ -309,6 +295,19 @@ export function DashboardViewer({ }); }, [elements, isMobile]); + // 요소가 없는 경우 + if (elements.length === 0) { + return ( +
+
+
📊
+
표시할 요소가 없습니다
+
대시보드 편집기에서 차트나 위젯을 추가해보세요
+
+
+ ); + } + return ( {isMobile ? (