Skip to content

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

Fix restoration not updating connection string

Joshen Lim5836ba8a8c0b
diff --git a/studio/components/layouts/ProjectLayout/RestoringState.tsx b/studio/components/layouts/ProjectLayout/RestoringState.tsx
index 7f8f3256cc5..05ad1bb45fa 100644
--- a/studio/components/layouts/ProjectLayout/RestoringState.tsx
+++ b/studio/components/layouts/ProjectLayout/RestoringState.tsx
@@ -8,7 +8,7 @@ import { getWithTimeout } from 'lib/common/fetch'
interface Props {}
const RestoringState: FC<Props> = ({}) => {
- const { app, ui } = useStore()
+ const { app, ui, meta } = useStore()
const project = ui.selectedProject
const checkServerInterval = useRef<number>()
@@ -37,7 +37,7 @@ const RestoringState: FC<Props> = ({}) => {
const onConfirm = async () => {
setLoading(true)
- await app.projects.fetchDetail(project?.ref ?? '')
+ await app.projects.fetchDetail(project?.ref ?? '', (project) => meta.setProjectDetails(project))
}
return (