From b75b7d6c61d162361caf34f3a72e17d35416042d Mon Sep 17 00:00:00 2001 From: yyh Date: Sun, 18 Jan 2026 16:05:10 +0800 Subject: [PATCH] fix: unused --- web/app/components/workflow/variable-inspect/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/variable-inspect/index.tsx b/web/app/components/workflow/variable-inspect/index.tsx index 775c761eca..541e266c37 100644 --- a/web/app/components/workflow/variable-inspect/index.tsx +++ b/web/app/components/workflow/variable-inspect/index.tsx @@ -4,7 +4,9 @@ import { useCallback, useMemo, } from 'react' +import { STORAGE_KEYS } from '@/config/storage-keys' import { cn } from '@/utils/classnames' +import { storage } from '@/utils/storage' import { useResizePanel } from '../nodes/_base/hooks/use-resize-panel' import { useStore } from '../store' import Panel from './panel' @@ -21,8 +23,8 @@ const VariableInspectPanel: FC = () => { return workflowCanvasHeight - 60 }, [workflowCanvasHeight]) - const handleResize = useCallback((width: number, height: number) => { - localStorage.setItem('workflow-variable-inpsect-panel-height', `${height}`) + const handleResize = useCallback((height: number) => { + storage.set(STORAGE_KEYS.WORKFLOW.VARIABLE_INSPECT_PANEL_HEIGHT, height) setVariableInspectPanelHeight(height) }, [setVariableInspectPanelHeight])