Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: handleUpdateWorkflowCanvas is not a function (#4343)

sino0f14fdd4c906
diff --git a/web/app/components/workflow/panel/record.tsx b/web/app/components/workflow/panel/record.tsx
index 9841b07ab1f..079dd2cc86b 100644
--- a/web/app/components/workflow/panel/record.tsx
+++ b/web/app/components/workflow/panel/record.tsx
@@ -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