Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: refetch project detail on unknown status (#21035)

Alaister Young3230747a583e
diff --git a/apps/studio/data/projects/project-detail-query.ts b/apps/studio/data/projects/project-detail-query.ts
index 659a2d37f30..4e346a22b0d 100644
--- a/apps/studio/data/projects/project-detail-query.ts
+++ b/apps/studio/data/projects/project-detail-query.ts
@@ -45,7 +45,9 @@ export const useProjectDetailQuery = <TData = ProjectDetailData>(
enabled: enabled && typeof ref !== 'undefined',
staleTime: 30 * 1000, // 30 seconds
refetchInterval(data) {
- if (data && (data as unknown as ProjectDetailData).status === 'COMING_UP') {
+ const status = data && (data as unknown as ProjectDetailData).status
+
+ if (status === 'COMING_UP' || status === 'UNKNOWN') {
return 5 * 1000 // 5 seconds
}