diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-08-28 15:50:10 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-28 16:09:12 +0200 |
commit | 9fe95458fff1abf711884abc3ec2f6da1b802a2b (patch) | |
tree | fffa281230b63399134c2116a35d0aba7691b732 /plugins/base/frontend/src/main | |
parent | 25e90a1bd8f4a5121239b07be1f1dc3b786e1918 (diff) | |
download | dokka-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')
-rw-r--r-- | plugins/base/frontend/src/main/components/root.tsx | 11 |
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 = () => { |