From eb8751212234b99ca50514cd1c923a5e073d1c98 Mon Sep 17 00:00:00 2001 From: yyh Date: Thu, 5 Feb 2026 11:43:54 +0800 Subject: [PATCH] fix: scope Reset All button visibility to current tab's data Show the button only when the active tab has data, preventing the empty-list-with-button scenario on the Variables tab when only artifacts exist. --- web/app/components/workflow/variable-inspect/panel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/variable-inspect/panel.tsx b/web/app/components/workflow/variable-inspect/panel.tsx index fabce360d3..bb0d0a89a9 100644 --- a/web/app/components/workflow/variable-inspect/panel.tsx +++ b/web/app/components/workflow/variable-inspect/panel.tsx @@ -37,7 +37,7 @@ const VariablesPanel: FC<{ onClose: () => void }> = ({ onClose }) => { setCurrentFocusNodeId('') }, [deleteAllInspectorVars, setCurrentFocusNodeId]) - const hasData = !isVariablesEmpty || hasArtifacts + const hasData = resolvedTab === InspectTab.Variables ? !isVariablesEmpty : hasArtifacts const headerActions = hasData ? (