chore: workflow sync with hash (#4250)

This commit is contained in:
zxhlyh
2024-05-10 14:48:20 +08:00
committed by GitHub
parent f49c99937c
commit a1ab87107b
8 changed files with 74 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ import {
NodeRunningStatus,
WorkflowRunningStatus,
} from '../types'
import { useWorkflowInteractions } from './use-workflow-interactions'
import { useWorkflowUpdate } from './use-workflow-interactions'
import { useStore as useAppStore } from '@/app/components/app/store'
import type { IOtherOptions } from '@/service/base'
import { ssePost } from '@/service/base'
@@ -26,7 +26,7 @@ export const useWorkflowRun = () => {
const reactflow = useReactFlow()
const featuresStore = useFeaturesStore()
const { doSyncWorkflowDraft } = useNodesSyncDraft()
const { handleUpdateWorkflowCanvas } = useWorkflowInteractions()
const { handleUpdateWorkflowCanvas } = useWorkflowUpdate()
const handleBackupDraft = useCallback(() => {
const {