mirror of
https://github.com/logto-io/logto.git
synced 2025-02-24 22:05:56 -05:00
fix(console): improve protected app loading state in get started page (#5402)
fix(console): improve protected app loading state in protected app
This commit is contained in:
parent
dbcfcc7ca1
commit
db9f67f55b
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ function ProtectedAppCreationForm() {
|
|||
const { getTo } = useTenantPathname();
|
||||
const { data, isLoading, mutate } = useSWR<Application[]>('api/applications?types=Protected');
|
||||
const { hasAppsReachedLimit } = useApplicationsUsage();
|
||||
const hasProtectedApps = !!data?.length;
|
||||
const hasProtectedApps = !isLoading && !!data?.length;
|
||||
const showCreationForm = !hasProtectedApps && !hasAppsReachedLimit;
|
||||
|
||||
const mutateApps = useCallback(
|
||||
|
|
Loading…
Add table
Reference in a new issue