From 0375c6d6bcbf56f0f89cfd94f67c97f5e41006e8 Mon Sep 17 00:00:00 2001 From: JCNoguera Date: Tue, 7 May 2024 15:14:39 +0200 Subject: [PATCH] chore: remove if condition --- client/src/index.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/index.tsx b/client/src/index.tsx index 8d099f65e..f52813aab 100644 --- a/client/src/index.tsx +++ b/client/src/index.tsx @@ -45,10 +45,8 @@ const AppInitializer = () => { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const container = document.getElementById("root")!; -if (!container.hasChildNodes()) { - const root = createRoot(container); - root.render(); -} +const root = createRoot(container); +root.render(); /** * Register all the services.