Skip to content

Commit

Permalink
fix: basic authentication error with react
Browse files Browse the repository at this point in the history
Co-authored-by: Bran <[email protected]>
  • Loading branch information
VmMad and brancoder committed May 6, 2024
1 parent a3cd69f commit 4cf9932
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(<AppInitializer />);
if (!container.hasChildNodes()) {
const root = createRoot(container);
root.render(<AppInitializer />);
}

/**
* Register all the services.
Expand Down

0 comments on commit 4cf9932

Please sign in to comment.