mirror of https://github.com/langgenius/dify.git
fix: test running tab switch
This commit is contained in:
parent
19664daeef
commit
3e0b3fae37
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue