From 150617c45de15e0bd1bd0c3f652ec05cf834389e Mon Sep 17 00:00:00 2001 From: sua yoo Date: Mon, 22 Sep 2025 15:39:34 -0700 Subject: [PATCH] fix flash of 404 when openingin in enw tab --- frontend/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 11ffa9f1be..f159b684da 100644 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -849,6 +849,11 @@ export class App extends BtrixElement { case "org": { if (!this.isUserInCurrentOrg) { + if (this.authState && !this.userInfo) { + // Wait for user info to finish loading + return this.renderSpinner(); + } + return this.renderNotFoundPage(); }