mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: handleUpdateWorkflowCanvas is not a function (#4343)
This commit is contained in:
parent
ece0f08a2b
commit
0f14fdd4c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user