mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix: test running tab switch
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user