0
Fork 0
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:
Charles Zhao 2024-02-09 14:00:58 +08:00 committed by GitHub
parent dbcfcc7ca1
commit db9f67f55b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(