Skip to content

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

Change useEffect dependency in SettingsLayout

Joshen Lim22c8d7a553d1
diff --git a/studio/components/layouts/SettingsLayout/SettingsLayout.tsx b/studio/components/layouts/SettingsLayout/SettingsLayout.tsx
index 49e3e05b8ee..fa1edfb8c91 100644
--- a/studio/components/layouts/SettingsLayout/SettingsLayout.tsx
+++ b/studio/components/layouts/SettingsLayout/SettingsLayout.tsx
@@ -34,10 +34,10 @@ const SettingsLayout: FC<Props> = ({ title, children }) => {
)
useEffect(() => {
- if (project?.ref) {
+ if (ui.selectedProjectRef) {
meta.extensions.load()
}
- }, [project?.ref])
+ }, [ui.selectedProjectRef])
return (
<ProjectLayout