mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 08:39:56 +02:00
Fix code tests
This commit is contained in:
@@ -302,7 +302,7 @@ export function validationCrossingWays(context) {
|
||||
(!member.role || member.role === 'outer' || member.role === 'inner')) {
|
||||
var entity = graph.hasEntity(member.id);
|
||||
// don't add duplicates
|
||||
if (!entity || array.includes(entity)) return;
|
||||
if (!entity || array.indexOf(entity) !== -1) return;
|
||||
array.push(entity);
|
||||
}
|
||||
return array;
|
||||
|
||||
Reference in New Issue
Block a user