fix(core-app): nav tree connections synchronisation

This commit is contained in:
Wroud
2020-09-09 14:55:36 +03:00
parent e5d4d91fb2
commit bb9188952f
@@ -341,13 +341,10 @@ export class NavNodeManagerService extends Bootstrap {
await this.refreshNode(nodeId);
if (connectionInfo?.features.includes(EConnectionFeature.temporary)) {
const tree = this.navTree.get(ROOT_NODE_PATH);
const tree = this.navTree.get(ROOT_NODE_PATH);
if (!tree?.includes(nodeId)) {
this.navTree.unshiftToNode(ROOT_NODE_PATH, [nodeId]);
}
if (!tree?.includes(nodeId)) {
this.navTree.unshiftToNode(ROOT_NODE_PATH, [nodeId]);
}
}
}