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'];