Fix issue where selected way could not be disconnected if the connection point occurred more than once in the way (close #6149)

This commit is contained in:
Quincy Morgan
2019-04-07 12:47:20 -07:00
parent b0ba87c8fa
commit 8815b878c5
+1 -1
View File
@@ -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));