From ae94f6fea0bbc1e54c390598d70b26875a5b1096 Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Mon, 9 Oct 2023 12:57:10 -0500 Subject: [PATCH] Remove unnecessary optional chaining --- src/core/render/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/render/index.js b/src/core/render/index.js index f9e78f919..7ff29a9f2 100644 --- a/src/core/render/index.js +++ b/src/core/render/index.js @@ -255,8 +255,8 @@ export function Render(Base) { const sidebarToggleEl = dom.getNode('button.sidebar-toggle'); if (hideSidebar) { - sidebarEl?.parentNode?.removeChild(sidebarEl); - sidebarToggleEl?.parentNode?.removeChild(sidebarToggleEl); + sidebarEl?.parentNode.removeChild(sidebarEl); + sidebarToggleEl?.parentNode.removeChild(sidebarToggleEl); return null; }