fix: prompt editor

This commit is contained in:
StyleZhang 2024-04-03 18:03:23 +08:00
parent 53aca1a922
commit e13f8da9d5
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ type WorkflowVariableBlockComponentProps = {
const WorkflowVariableBlockComponent: FC<WorkflowVariableBlockComponentProps> = ({
nodeKey,
variables,
getWorkflowNode,
getWorkflowNode = () => {},
}) => {
const [ref, isSelected] = useSelectOrDelete(nodeKey, DELETE_WORKFLOW_VARIABLE_BLOCK_COMMAND)
const node = getWorkflowNode(variables[0])