mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Add guard code in locationsAt, for testing entities with invalid loc
This commit is contained in:
@@ -239,7 +239,7 @@ export function coreLocations() {
|
||||
//
|
||||
_this.locationsAt = (loc) => {
|
||||
let result = {};
|
||||
_wp(loc, true).forEach(prop => result[prop.id] = prop.area);
|
||||
(_wp(loc, true) || []).forEach(prop => result[prop.id] = prop.area);
|
||||
return result;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user