fix: handleUpdateWorkflowCanvas is not a function (#4343)

This commit is contained in:
sino 2024-05-13 20:36:23 +08:00 committed by GitHub
parent ece0f08a2b
commit 0f14fdd4c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,11 +2,11 @@ import { memo, useCallback } from 'react'
import type { WorkflowDataUpdator } from '../types'
import Run from '../run'
import { useStore } from '../store'
import { useWorkflowInteractions } from '../hooks'
import { useWorkflowUpdate } from '../hooks'
const Record = () => {
const historyWorkflowData = useStore(s => s.historyWorkflowData)
const { handleUpdateWorkflowCanvas } = useWorkflowInteractions()
const { handleUpdateWorkflowCanvas } = useWorkflowUpdate()
const handleResultCallback = useCallback((res: any) => {
const graph: WorkflowDataUpdator = res.graph