diff --git a/web/app/components/workflow/hooks/use-nodes-interactions.ts b/web/app/components/workflow/hooks/use-nodes-interactions.ts index 4b736292c5..bdbb1dab33 100644 --- a/web/app/components/workflow/hooks/use-nodes-interactions.ts +++ b/web/app/components/workflow/hooks/use-nodes-interactions.ts @@ -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) {