[ACS-1519] - Fixed double loading of the viewer (#2095)

This commit is contained in:
Vito
2021-05-04 10:23:19 +01:00
committed by GitHub
parent bd7c064b22
commit 409210e05b
@@ -211,10 +211,8 @@ export class AppViewerComponent implements OnInit, OnDestroy {
this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));
if (this.node && this.node.isFile) {
this.nodeId = this.node.id;
const nearest = await this.getNearestNodes(this.node.id, this.node.parentId);
this.nodeId = this.node.id;
this.previousNodeId = nearest.left;
this.nextNodeId = nearest.right;
this.fileName = this.node.name + this.node?.properties?.['cm:versionLabel'];