From 71f38a38e0ee541baf5c6e71385bbe03d178e797 Mon Sep 17 00:00:00 2001 From: kjs Date: Mon, 3 Nov 2025 14:19:13 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20FlowWidget=20groupSettingKey=20=EB=B3=80?= =?UTF-8?q?=EC=88=98=EB=AA=85=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - selectedStep -> selectedStepId로 수정 - groupSettingKey 선언 위치를 useEffect 이전으로 이동 - 중복 선언 제거 --- frontend/components/screen/widgets/FlowWidget.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/components/screen/widgets/FlowWidget.tsx b/frontend/components/screen/widgets/FlowWidget.tsx index 4bf23ba4..0caa97e4 100644 --- a/frontend/components/screen/widgets/FlowWidget.tsx +++ b/frontend/components/screen/widgets/FlowWidget.tsx @@ -160,6 +160,12 @@ export function FlowWidget({ return `flowWidget_searchFilters_${user.userId}_${flowId}_${selectedStepId}`; }, [flowId, selectedStepId, user?.userId]); + // 🆕 그룹 설정 localStorage 키 생성 + const groupSettingKey = useMemo(() => { + if (!selectedStepId) return null; + return `flowWidget_groupSettings_step_${selectedStepId}`; + }, [selectedStepId]); + // 🆕 저장된 필터 설정 불러오기 useEffect(() => { if (!filterSettingKey || stepDataColumns.length === 0 || !user?.userId) return; @@ -247,12 +253,6 @@ export function FlowWidget({ setFilteredData([]); }, []); - // 🆕 그룹 설정 localStorage 키 생성 - const groupSettingKey = useMemo(() => { - if (!selectedStep) return null; - return `flowWidget_groupSettings_step_${selectedStep}`; - }, [selectedStep]); - // 🆕 그룹 설정 저장 const saveGroupSettings = useCallback(() => { if (!groupSettingKey) return;