From e13f8da9d536ff7b8b151f7a7cb78dbcb2c9a427 Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Wed, 3 Apr 2024 18:03:23 +0800 Subject: [PATCH] fix: prompt editor --- .../prompt-editor/plugins/workflow-variable-block/component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/prompt-editor/plugins/workflow-variable-block/component.tsx b/web/app/components/base/prompt-editor/plugins/workflow-variable-block/component.tsx index a86d34db9e..1f1d7877fb 100644 --- a/web/app/components/base/prompt-editor/plugins/workflow-variable-block/component.tsx +++ b/web/app/components/base/prompt-editor/plugins/workflow-variable-block/component.tsx @@ -17,7 +17,7 @@ type WorkflowVariableBlockComponentProps = { const WorkflowVariableBlockComponent: FC = ({ nodeKey, variables, - getWorkflowNode, + getWorkflowNode = () => {}, }) => { const [ref, isSelected] = useSelectOrDelete(nodeKey, DELETE_WORKFLOW_VARIABLE_BLOCK_COMMAND) const node = getWorkflowNode(variables[0])