fix: note node delete

wtw/rag-pipeline
zxhlyh 10 months ago
parent 261b7cabc8
commit a4f4fea0a5

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

Loading…
Cancel
Save