Skip to content

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

Check is_platform before fetching subscription data

Terry Suttonacbd69ebd35b
diff --git a/studio/stores/app/ProjectStore.ts b/studio/stores/app/ProjectStore.ts
index 028f9bc31f6..fa7a47e021f 100644
--- a/studio/stores/app/ProjectStore.ts
+++ b/studio/stores/app/ProjectStore.ts
@@ -3,7 +3,7 @@ import { Project } from 'types'
import { IRootStore } from '../RootStore'
import { constructHeaders } from 'lib/api/apiHelpers'
import { get } from 'lib/common/fetch'
-import { PROJECT_STATUS } from 'lib/constants'
+import { IS_PLATFORM, PROJECT_STATUS } from 'lib/constants'
import PostgresMetaInterface, { IPostgresMetaInterface } from '../common/PostgresMetaInterface'
import pingPostgrest from 'lib/pingPostgrest'
@@ -57,7 +57,9 @@ export default class ProjectStore extends PostgresMetaInterface<Project> {
this.data[project.id] = project
// lazy fetches
- this.fetchSubscriptionTier(project)
+ if (IS_PLATFORM) {
+ this.fetchSubscriptionTier(project)
+ }
}
}