From 3c9325ecbc122aa3334f8115fea508a355f1780c Mon Sep 17 00:00:00 2001 From: Sampath Date: Tue, 2 Jan 2024 23:00:35 +0530 Subject: [PATCH] fixes for lint and compilation errors --- src/Explorer/Panes/PanelContainerComponent.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Explorer/Panes/PanelContainerComponent.tsx b/src/Explorer/Panes/PanelContainerComponent.tsx index fba9ffcb2..0e5100d93 100644 --- a/src/Explorer/Panes/PanelContainerComponent.tsx +++ b/src/Explorer/Panes/PanelContainerComponent.tsx @@ -98,15 +98,15 @@ export class PanelContainerComponent extends React.Component): void => { - let elementIdToFocus = sessionStorage.getItem("focusedElementId") || null; + const elementIdToFocus = sessionStorage.getItem("focusedElementId") || null; if (elementIdToFocus) { - let targetElement = document.getElementById(elementIdToFocus); + const targetElement = document.getElementById(elementIdToFocus); if (targetElement) { - let focusableParent = this.findFocusableParent(targetElement); + const focusableParent = this.findFocusableParent(targetElement); if (focusableParent) { setTimeout(() => { - focusableParent.focus(); + if (focusableParent) focusableParent.focus(); }, 100); sessionStorage.removeItem("focusedElementId"); }