diff options
Diffstat (limited to 'packages/aml-backoffice-ui/src/index.tsx')
-rw-r--r-- | packages/aml-backoffice-ui/src/index.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/aml-backoffice-ui/src/index.tsx b/packages/aml-backoffice-ui/src/index.tsx index c2ac4c84b..ad0d394d8 100644 --- a/packages/aml-backoffice-ui/src/index.tsx +++ b/packages/aml-backoffice-ui/src/index.tsx @@ -18,5 +18,8 @@ import { App } from "./App.js"; import { h, render } from "preact"; const app = document.getElementById("app"); - -render(<App />, app as any); +if (!app) { + console.error("could not found app element") +} else { + render(<App />, app); +} |