diff --git a/packages/dmn-editor/src/diagram/connections/isValidConnection.ts b/packages/dmn-editor/src/diagram/connections/isValidConnection.ts index 33f177c8e02..3942547afcb 100644 --- a/packages/dmn-editor/src/diagram/connections/isValidConnection.ts +++ b/packages/dmn-editor/src/diagram/connections/isValidConnection.ts @@ -50,7 +50,8 @@ export function _checkIsValidConnection( // External nodes cannot be targeted by default // However there are exceptions, for example adding a waypoint on the edge - if (!extraArg?.allowExternalTarget && targetNode.data.dmnObjectQName.prefix) { + const isExternalNode = targetNode.data.dmnObjectQName.prefix != undefined; + if (!extraArg?.allowExternalTarget && isExternalNode) { return false; }