fix: prompt editor

This commit is contained in:
StyleZhang 2024-04-03 18:03:23 +08:00
parent 53aca1a922
commit e13f8da9d5

View File

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