diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index e519ff553..9fb98e651 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -78,7 +78,7 @@ iD.Map = function() { var only = {}; difference.forEach(function buildDifference(id) { only[id] = graph.fetch(id); - if (only[id].type === 'node') { + if (only[id] && only[id].type === 'node') { graph.parentWays(id).forEach(function buildOnly(parent) { // Don't re-fetch parents if (only[parent.id] === undefined) {