From d85cba16c95ba539886af455d559bf6698f6538c Mon Sep 17 00:00:00 2001 From: Saira-A <139405429+Saira-A@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:04:34 +0100 Subject: [PATCH] return this.treeComponent --- .../iiif/modules/uv-contentleftpanel-module/TreeView.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/TreeView.ts b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/TreeView.ts index f493c4ff9..53024dee1 100644 --- a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/TreeView.ts +++ b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/TreeView.ts @@ -100,8 +100,7 @@ export class TreeView extends BaseView { } public getAllNodes(): TreeNode[] { - const allNodes = this.treeComponent.getAllNodes(); - return allNodes; + return this.treeComponent.getAllNodes(); } public deselectCurrentNode(): void { @@ -109,8 +108,7 @@ export class TreeView extends BaseView { } public getNodeById(id: string): TreeNode { - const node = this.treeComponent.getNodeById(id); - return node; + return this.treeComponent.getNodeById(id); } resize(): void {