fix workflow view switch refresh

This commit is contained in:
yyh
2026-01-22 13:14:01 +08:00
parent 62ec464d91
commit ee35f72861
7 changed files with 123 additions and 44 deletions

View File

@ -21,8 +21,9 @@ export const useWorkflowRefreshDraft = () => {
debouncedSyncWorkflowDraft,
} = workflowStore.getState()
if (debouncedSyncWorkflowDraft && typeof (debouncedSyncWorkflowDraft as any).cancel === 'function')
(debouncedSyncWorkflowDraft as any).cancel()
const { cancel } = debouncedSyncWorkflowDraft
if (typeof cancel === 'function')
cancel()
const wasLoaded = isWorkflowDataLoaded
if (wasLoaded)