fix: test running tab switch

This commit is contained in:
JzoNg 2026-01-27 14:45:46 +08:00
parent 19664daeef
commit 3e0b3fae37
2 changed files with 3 additions and 4 deletions

View File

@ -50,7 +50,7 @@ const WorkflowPreview = () => {
useEffect(() => {
if (showDebugAndPreviewPanel && showInputsPanel)
setCurrentTab('INPUT')
switchTab('INPUT')
}, [showDebugAndPreviewPanel, showInputsPanel])
useEffect(() => {
@ -65,6 +65,8 @@ const WorkflowPreview = () => {
if ((status === WorkflowRunningStatus.Succeeded || status === WorkflowRunningStatus.Failed) && !workflowRunningData.resultText && !workflowRunningData.result.files?.length)
switchTab('DETAIL')
if (status === WorkflowRunningStatus.Paused)
switchTab('RESULT')
}, [workflowRunningData])
const [isResizing, setIsResizing] = useState(false)

View File

@ -3887,9 +3887,6 @@
}
},
"app/components/workflow/panel/workflow-preview.tsx": {
"react-hooks-extra/no-direct-set-state-in-use-effect": {
"count": 1
},
"ts/no-explicit-any": {
"count": 2
}