mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Fix difference
This commit is contained in:
@@ -134,7 +134,7 @@ iD.Graph.prototype = {
|
||||
entity = this.entities[id];
|
||||
oldentity = graph.entities[id];
|
||||
if (entity !== oldentity) {
|
||||
if (entity.type === 'way') {
|
||||
if (entity && entity.type === 'way') {
|
||||
result = oldentity
|
||||
? result
|
||||
.concat(_.difference(entity.nodes, oldentity.nodes))
|
||||
|
||||
Reference in New Issue
Block a user