mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 06:35:20 +02:00
Only check childnode versions of nodes that exist both locally and remote
The old code was causing false positives, flagging any added or removed childnode as a conflict.
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ iD.modes.Save = function(context) {
|
||||
var a = localGraph.hasEntity(children[i]),
|
||||
b = remoteGraph.hasEntity(children[i]);
|
||||
|
||||
if (!a || !b || a.version !== b.version) return false;
|
||||
if (a && b && a.version !== b.version) return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user