chore: revert not related change

This commit is contained in:
hjlarry 2026-04-11 19:43:41 +08:00
parent 73c77b6701
commit 9ce4517ee1

View File

@ -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: {