diff --git a/modules/core/locations.js b/modules/core/locations.js index 0b1e18c6e..6295074df 100644 --- a/modules/core/locations.js +++ b/modules/core/locations.js @@ -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; };