From 0f14fdd4c906a9e29b9a1c87d9b235cda02eec24 Mon Sep 17 00:00:00 2001 From: sino Date: Mon, 13 May 2024 20:36:23 +0800 Subject: [PATCH] fix: handleUpdateWorkflowCanvas is not a function (#4343) --- web/app/components/workflow/panel/record.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/panel/record.tsx b/web/app/components/workflow/panel/record.tsx index 9841b07ab1..079dd2cc86 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