Stop gating the no-organization modal on organizations loading state so fresh local installs can always access anonymous organization creation when no session context exists.
Unified · Split
| @@ -24,8 +24,6 @@ const localSetupCommands = [ · 23 unmodified lines | ||
| 24 | 24 | export function NoOrganizationModal({ enabled }: { enabled: boolean }) { |
| 25 | 25 | const { |
| 26 | 26 | loading, |
| 27 | − organizations, | |
| 28 | − organizationsLoading, | |
| 29 | 27 | context, |
| 30 | 28 | isSignedInToWorkos, |
| 31 | 29 | createAnonymousOrganization, |
| @@ -36,10 +34,8 @@ export function NoOrganizationModal({ enabled }: { enabled: boolean }) { · 4 unmodified lines | ||
| 36 | 34 | |
| 37 | 35 | const shouldShow = enabled |
| 38 | 36 | && !loading |
| 39 | − && !organizationsLoading | |
| 40 | 37 | && !context |
| 41 | − && !isSignedInToWorkos | |
| 42 | − && organizations.length === 0; | |
| 38 | + && !isSignedInToWorkos; | |
| 43 | 39 | |
| 44 | 40 | const handleCreateAnonymousOrganization = async () => { |
| 45 | 41 | setError(null); |