diff --git a/modules/actions/disconnect.js b/modules/actions/disconnect.js index 62a2162b0..b58ab7d2f 100644 --- a/modules/actions/disconnect.js +++ b/modules/actions/disconnect.js @@ -71,7 +71,7 @@ export function actionDisconnect(nodeId, newNodeId) { action.disabled = function(graph) { var connections = action.connections(graph); - if (connections.length === 0 || (wayIds && wayIds.length !== connections.length)) + if (connections.length === 0) return 'not_connected'; var parentWays = graph.parentWays(graph.entity(nodeId));