Fix code tests

This commit is contained in:
Quincy Morgan
2020-04-03 13:33:54 -07:00
parent ca1e2031e7
commit 513b344012
2 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -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;