diff --git a/client/src/index.tsx b/client/src/index.tsx index 8e7634c2c..89ddbc15a 100644 --- a/client/src/index.tsx +++ b/client/src/index.tsx @@ -55,8 +55,10 @@ const AppInitializer = () => { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const container = document.getElementById("root")!; -const root = createRoot(container); -root.render(); +if (!container.hasChildNodes()) { + const root = createRoot(container); + root.render(); +} /** * Register all the services.