fix: not sync draft than call

pull/21369/head
Joel 12 months ago
parent 14350e95a8
commit 57e4ce2af9

@ -171,9 +171,12 @@ const useLastRun = <T>({
return formattedData
}, [isIterationNode, isLoopNode, singleRunParams?.allVarObject, id])
const callRunApi = async (data: Record<string, any>) => {
await handleSyncWorkflowDraft(true)
doCallRunApi(toSubmitData(data))
const callRunApi = (data: Record<string, any>) => {
handleSyncWorkflowDraft(true, true, {
onSuccess() {
doCallRunApi(toSubmitData(data))
},
})
}
const [tabType, setTabType] = useState<TabType>(TabType.settings)

Loading…
Cancel
Save