aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/frontend/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/frontend/src/main')
-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 = () => {