fix: prevent empty workflow draft sync during page navigation (#25140)

This commit is contained in:
lyzno1
2025-09-04 17:13:49 +08:00
committed by GitHub
parent 83fab4bc19
commit 1fffc79c32
4 changed files with 25 additions and 7 deletions

View File

@ -49,6 +49,7 @@ export const useWorkflowInit = () => {
}, {} as Record<string, string>),
environmentVariables: res.environment_variables?.map(env => env.value_type === 'secret' ? { ...env, value: '[__HIDDEN__]' } : env) || [],
conversationVariables: res.conversation_variables || [],
isWorkflowDataLoaded: true,
})
setSyncWorkflowDraftHash(res.hash)
setIsLoading(false)