mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
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:
@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user