Skip to content

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

Pull master and resolve conflicts

Joshen Lim6ad6c85a1ccd
diff --cc studio/hooks/misc/withAuth.tsx
index 2821ed57580,6ed9a74c474..dbc33f4ce96
--- a/studio/hooks/misc/withAuth.tsx
+++ b/studio/hooks/misc/withAuth.tsx
@@@ -1,9 -1,7 +1,8 @@@
import { useProfile, useStore } from 'hooks'
- import { ComponentType, useEffect, useState } from 'react'
+ import { ComponentType, useEffect } from 'react'
import { NextRouter, useRouter } from 'next/router'
import { IS_PLATFORM } from 'lib/constants'
- import Connecting from 'components/ui/Loading'
+import { usePermissions2 } from 'hooks/queries/usePermissionsQuery'
const PLATFORM_ONLY_PAGES = ['storage', 'reports', 'settings']
diff --cc studio/stores/UiStore.ts
index 54ced860067,630acc952c9..b4444a0e6ac
--- a/studio/stores/UiStore.ts
+++ b/studio/stores/UiStore.ts
@@@ -36,7 -35,6 +36,7 @@@ export default class UiStore implement
selectedOrganizationSlug?: string
notification?: Notification
profile?: User
- permissions?: any // todo: define this
++ permissions?: any = [] // todo: define this
constructor(rootStore: IRootStore) {
this.rootStore = rootStore