From 00c7eaddc2ac2533a9b6eb2f9ba8fbaa709b0562 Mon Sep 17 00:00:00 2001 From: J Guthrie Date: Mon, 8 Apr 2019 17:07:12 +0100 Subject: [PATCH] Fix to work with PhatomJS --- 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 6359ff606..169dbf92e 100644 --- a/modules/actions/disconnect.js +++ b/modules/actions/disconnect.js @@ -59,7 +59,7 @@ export function actionDisconnect(nodeId, newNodeId) { } else { way.nodes.forEach(function(waynode, index) { if (waynode === nodeId) { - if (way.isClosed() && parentWays.length > 1 && wayIds && wayIds.includes(way.id) && index === way.nodes.length-1) { + if (way.isClosed() && parentWays.length > 1 && wayIds && wayIds.indexOf(way.id) !== -1 && index === way.nodes.length-1) { return; } candidates.push({ wayID: way.id, index: index });