From 9ce4517ee144137b4552499d5138fd8ea482a5df Mon Sep 17 00:00:00 2001 From: hjlarry Date: Sat, 11 Apr 2026 19:43:41 +0800 Subject: [PATCH] chore: revert not related change --- web/app/components/workflow/operator/add-block.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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: {