Skip to content

Commit 7398731

Browse files
committed
Check root element presence
1 parent 7a9e09b commit 7398731

File tree

1 file changed

+3
-0
lines changed
  • rust/cubesql/cubesql/egraph-debug-template/src

1 file changed

+3
-0
lines changed

rust/cubesql/cubesql/egraph-debug-template/src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,5 +470,8 @@ function rootComponent() {
470470
}
471471

472472
const rootElement = document.getElementById('ui');
473+
if (rootElement === null) {
474+
throw new Error('Root element not found');
475+
}
473476
const root = createRoot(rootElement);
474477
root.render(rootComponent());

0 commit comments

Comments
 (0)