fix(workflow): show clear all button when any inspect tab has data

Previously the button visibility was tab-dependent, hiding it when
switching to an empty tab even if the other tab had data.
This commit is contained in:
yyh
2026-02-10 17:14:12 +08:00
parent c980f1b2ac
commit ce8c484ab8

View File

@ -37,7 +37,7 @@ const VariablesPanel: FC<{ onClose: () => void }> = ({ onClose }) => {
setCurrentFocusNodeId('')
}, [deleteAllInspectorVars, setCurrentFocusNodeId])
const hasData = resolvedTab === InspectTab.Variables ? !isVariablesEmpty : hasArtifacts
const hasData = !isVariablesEmpty || hasArtifacts
const headerActions = hasData
? (
<Button variant="ghost" size="small" onClick={handleClear}>