core-3nweb-client-lib 0.27.9 → 0.27.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,7 @@ class NodesContainer {
|
|
|
44
44
|
}
|
|
45
45
|
set(node) {
|
|
46
46
|
const existing = this.nodes.get(node.objId);
|
|
47
|
-
if (existing) {
|
|
47
|
+
if (existing && (existing !== node)) {
|
|
48
48
|
throw new Error(`Cannot add second node for the same id ${node.objId}`);
|
|
49
49
|
}
|
|
50
50
|
this.nodes.set(node.objId, node);
|