aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/frontend/src/main/components
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-08-28 15:50:10 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-28 16:09:12 +0200
commit9fe95458fff1abf711884abc3ec2f6da1b802a2b (patch)
treefffa281230b63399134c2116a35d0aba7691b732 /plugins/base/frontend/src/main/components
parent25e90a1bd8f4a5121239b07be1f1dc3b786e1918 (diff)
downloaddokka-9fe95458fff1abf711884abc3ec2f6da1b802a2b.tar.gz
dokka-9fe95458fff1abf711884abc3ec2f6da1b802a2b.tar.bz2
dokka-9fe95458fff1abf711884abc3ec2f6da1b802a2b.zip
Hide navigation pane search on multimodule page
Diffstat (limited to 'plugins/base/frontend/src/main/components')
-rw-r--r--plugins/base/frontend/src/main/components/root.tsx11
1 files changed, 7 insertions, 4 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 = () => {