Skip to content

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

Merge branch 'master' into feat/sql-editor-optimistic-create

Alaister Young2bc5b3b842a5
diff --cc studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
index 7546b4001b1,3781412fd73..b8f0c135734
--- a/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
+++ b/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
@@@ -42,11 -46,11 +42,12 @@@ const OpenQueryItem = observer(({ tabIn
})
const DropdownMenu = observer(({ tabInfo }: { tabInfo: QueryTab }) => {
- const router = useRouter()
- const { ref } = router.query
+ const {
+ ui: { profile: user },
+ content: contentStore,
+ } = useStore()
+
const sqlEditorStore: any = useSqlStore()
- const contentStore: any = useProjectContentStore(ref)
const [tabId, setTabId] = useState('')
const [renameModalOpen, setRenameModalOpen] = useState(false)
diff --cc studio/hooks/index.ts
index 824a58fad17,87e81884c1f..22e133f6a13
--- a/studio/hooks/index.ts
+++ b/studio/hooks/index.ts
@@@ -1,6 -1,6 +1,7 @@@
export * from './misc/useStore'
export * from './misc/withAuth'
+export * from './misc/useOptimisticSqlSnippetCreate'
+ export * from './misc/useNotifications'
export * from './deprecated'
export * from './queries'
export * from './ui'