diff --git a/web/app/components/workflow/operator/add-block.tsx b/web/app/components/workflow/operator/add-block.tsx index 6efc761a4c..a5930f6c60 100644 --- a/web/app/components/workflow/operator/add-block.tsx +++ b/web/app/components/workflow/operator/add-block.tsx @@ -63,10 +63,9 @@ const AddBlock = ({ } = store.getState() const nodes = getNodes() const nodesWithSameType = nodes.filter(node => node.data.type === type) - const nodeMetaData = nodesMetaDataMap?.[type] - if (!nodeMetaData) - return - const { defaultValue } = nodeMetaData + const { + defaultValue, + } = nodesMetaDataMap![type] const { newNode } = generateNewNode({ type: getNodeCustomTypeByNodeDataType(type), data: {