mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
Fix for deleting elements
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user