From 409210e05b9faff20e038976eb7aa0c837a5c41f Mon Sep 17 00:00:00 2001 From: Vito Date: Tue, 4 May 2021 10:23:19 +0100 Subject: [PATCH] [ACS-1519] - Fixed double loading of the viewer (#2095) --- src/app/components/viewer/viewer.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/components/viewer/viewer.component.ts b/src/app/components/viewer/viewer.component.ts index 4fb62e0e3..33d67c525 100644 --- a/src/app/components/viewer/viewer.component.ts +++ b/src/app/components/viewer/viewer.component.ts @@ -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'];