diff options
-rw-r--r-- | plugins/base/frontend/src/main/components/root.tsx | 11 | ||||
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 6 |
2 files changed, 11 insertions, 6 deletions
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( - <NavigationPaneSearch />, - document.getElementById('paneSearch') - ) + const element = document.getElementById('paneSearch') + if(element){ + render( + <NavigationPaneSearch />, + document.getElementById('paneSearch') + ) + } } let renderApp = () => { diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index d95d8f2a..83af968d 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -691,8 +691,10 @@ open class HtmlRenderer( div { id = "logo" } - div { - id = "paneSearch" + if(page !is MultimoduleRootPage) { + div { + id = "paneSearch" + } } div { id = "sideMenu" |