mirror of https://github.com/langgenius/dify.git
fix: note node delete
This commit is contained in:
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…
Reference in New Issue