Browse Source

fix(flagpole): Only check react-router-6 flag when org is set (#76671)

Fixes [SENTRY-3C3A](https://sentry.sentry.io/issues/5608805743/)
Evan Purkhiser 6 months ago
parent
commit
6e56152bff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sentry/web/client_config.py

+ 1 - 1
src/sentry/web/client_config.py

@@ -216,7 +216,7 @@ class _ClientConfig:
 
     @property
     def enabled_features(self) -> Iterable[str]:
-        if features.has("organizations:react-router-6", self.last_org):
+        if self.last_org and features.has("organizations:react-router-6", self.last_org):
             yield "organizations:react-router-6"
         if features.has("organizations:create", actor=self.user):
             yield "organizations:create"