From 9fe95458fff1abf711884abc3ec2f6da1b802a2b Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Fri, 28 Aug 2020 15:50:10 +0200 Subject: Hide navigation pane search on multimodule page --- plugins/base/frontend/src/main/components/root.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugins/base/frontend/src/main') diff --git a/plugins/base/frontend/src/main/components/root.tsx b/plugins/base/frontend/src/main/components/root.tsx index 9f3ecba9..ad93d731 100644 --- a/plugins/base/frontend/src/main/components/root.tsx +++ b/plugins/base/frontend/src/main/components/root.tsx @@ -10,10 +10,13 @@ const appEl = document.getElementById('searchBar'); const rootEl = document.createElement('div'); const renderNavigationPane = () => { - render( - , - document.getElementById('paneSearch') - ) + const element = document.getElementById('paneSearch') + if(element){ + render( + , + document.getElementById('paneSearch') + ) + } } let renderApp = () => { -- cgit