diff --git a/src/Explorer/Panes/PanelContainerComponent.tsx b/src/Explorer/Panes/PanelContainerComponent.tsx index 253be3b1c..642de0b3e 100644 --- a/src/Explorer/Panes/PanelContainerComponent.tsx +++ b/src/Explorer/Panes/PanelContainerComponent.tsx @@ -79,8 +79,7 @@ export class PanelContainerComponent extends React.Component): void => { const collection = useSelectedNode.getState().findSelectedCollection(); - const targetElementDataTest: string = collection.id(); - const targetElement: HTMLElement | null = document.querySelector(`[data-test="${targetElementDataTest}"]`); + const targetElement: HTMLElement | null = document.querySelector(`[data-test="${collection.id()}"]`); if (ev && (ev.target as HTMLElement).id === "notificationConsoleHeader") { ev.preventDefault(); } else {