pdxb.us
pdxb.us copied to clipboard
Error thrown if no locations are nearby.
Error:
TypeError: Cannot read property 'map' of undefined
at normalizeLocations (pdxbus/routes/nearby.js:63:23)
at invokeCallback (ember.js:10013:19)
at publish (ember.js:9683:9)
at publishFulfillment (ember.js:10103:7)
at eval (ember.js:18379:7)
at Object.DeferredActionQueues.flush (ember.js:6127:24)
at Object.Backburner.end (ember.js:6215:27)
at eval (ember.js:6530:20)
The error is in this line:
return locations.map(function(location) {
return Location.create(location);
});