From 8815b878c5a351f144effbbc3e1fb35fcc580c40 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Sun, 7 Apr 2019 12:47:20 -0700 Subject: [PATCH] Fix issue where selected way could not be disconnected if the connection point occurred more than once in the way (close #6149) --- modules/actions/disconnect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));