mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Fix to work with PhatomJS
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user