The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add allProjects to dep array
Joshen Limc05a2abf0ead
diff --git a/studio/hooks/misc/useSelectedProject.ts b/studio/hooks/misc/useSelectedProject.tsindex 8a300429bb1..e61ecbfc086 100644--- a/studio/hooks/misc/useSelectedProject.ts+++ b/studio/hooks/misc/useSelectedProject.ts@@ -8,6 +8,9 @@ export function useSelectedProject() {const { data: allProjects } = useProjectsQuery()const { data } = useProjectDetailQuery({ ref })- const projectMinimal = useMemo(() => allProjects?.find((project) => project.ref === ref), [ref])+ const projectMinimal = useMemo(+ () => allProjects?.find((project) => project.ref === ref),+ [ref, allProjects]+ )return data || projectMinimal}