diff --git a/web/app/components/workflow/variable-inspect/index.tsx b/web/app/components/workflow/variable-inspect/index.tsx index c51429b882..2761dcae3c 100644 --- a/web/app/components/workflow/variable-inspect/index.tsx +++ b/web/app/components/workflow/variable-inspect/index.tsx @@ -21,8 +21,9 @@ const VariableInspectPanel: FC = () => { return workflowCanvasHeight - 60 }, [workflowCanvasHeight]) - const handleResize = useCallback((width: number) => { - setVariableInspectPanelHeight(width) + const handleResize = useCallback((width: number, height: number) => { + localStorage.setItem('workflow-variable-inpsect-panel-height', `${height}`) + setVariableInspectPanelHeight(height) }, [setVariableInspectPanelHeight]) const {