fix: FlowWidget groupSettingKey 변수명 오류 수정
- selectedStep -> selectedStepId로 수정 - groupSettingKey 선언 위치를 useEffect 이전으로 이동 - 중복 선언 제거
This commit is contained in:
parent
eb9c85f786
commit
71f38a38e0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue