fix: note node delete

This commit is contained in:
zxhlyh 2025-06-25 16:01:45 +08:00
parent 261b7cabc8
commit a4f4fea0a5
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ export const useNodesInteractions = () => {
if (!currentNode)
return
if (nodesMetaDataMap?.[currentNode.data.type as BlockEnum].metaData.isUndeletable)
if (nodesMetaDataMap?.[currentNode.data.type as BlockEnum]?.metaData.isUndeletable)
return
if (currentNode.data.type === BlockEnum.Iteration) {