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 | export function NoOrganizationModal({ enabled }: { enabled: boolean }) { | 24 | export function NoOrganizationModal({ enabled }: { enabled: boolean }) { |
| 25 | const { | 25 | const { |
| 26 | loading, | 26 | loading, |
| 27 | organizations, | ||
| 28 | organizationsLoading, | ||
| 29 | context, | 27 | context, |
| 30 | isSignedInToWorkos, | 28 | isSignedInToWorkos, |
| 31 | createAnonymousOrganization, | 29 | createAnonymousOrganization, |
| @@ -36,10 +34,8 @@ export function NoOrganizationModal({ enabled }: { enabled: boolean }) { · 4 unmodified lines | |||
| 36 | 34 | ||
| 37 | const shouldShow = enabled | 35 | const shouldShow = enabled |
| 38 | && !loading | 36 | && !loading |
| 39 | && !organizationsLoading | ||
| 40 | && !context | 37 | && !context |
| 41 | && !isSignedInToWorkos | 38 | && !isSignedInToWorkos; |
| 42 | && organizations.length === 0; | ||
| 43 | 39 | ||
| 44 | const handleCreateAnonymousOrganization = async () => { | 40 | const handleCreateAnonymousOrganization = async () => { |
| 45 | setError(null); | 41 | setError(null); |