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])