Skip to content

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

fix schema switch (#39259)

Jordi Enric74a3adb3c77b
diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
index 82ca681b973..481251005de 100644
--- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
@@ -115,10 +115,11 @@ const FunctionsList = ({
showError={false}
selectedSchemaName={selectedSchema}
onSelectSchema={(schema) => {
- const url = new URL(document.URL)
- url.searchParams.delete('search')
- router.push(url)
- setSelectedSchema(schema)
+ setFilterString('')
+ // Wait for the filter to be cleared from the URL
+ setTimeout(() => {
+ setSelectedSchema(schema)
+ }, 50)
}}
/>
<Input