The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: escape/remove double quotes in combobox items to prevent crashing (#21162)
Charis95e8375a22bd
diff --git a/apps/studio/components/interfaces/Auth/Hooks/FunctionSelector.tsx b/apps/studio/components/interfaces/Auth/Hooks/FunctionSelector.tsxindex 83f406fc0e5..ebc2af7a0a5 100644--- a/apps/studio/components/interfaces/Auth/Hooks/FunctionSelector.tsx+++ b/apps/studio/components/interfaces/Auth/Hooks/FunctionSelector.tsx@@ -131,6 +131,7 @@ const FunctionSelector = ({{functions?.map((func) => (<CommandItem_Shadcn_key={func.id}+ value={func.name.replaceAll('"', '')}className="cursor-pointer flex items-center justify-between space-x-2 w-full"onSelect={() => {onSelectFunction(func.name)diff --git a/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx b/apps/studio/components/interfaces/Integrations/ProjectLinker.tsxindex 62a2780904b..0c7daa4c2ea 100644--- a/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx+++ b/apps/studio/components/interfaces/Integrations/ProjectLinker.tsx@@ -228,7 +228,7 @@ const ProjectLinker = ({{supabaseProjects.map((project, i) => {return (<CommandItem_Shadcn_- value={`${project.name}-${i}`}+ value={`${project.name.replaceAll('"', '')}-${i}`}key={project.ref}className="flex gap-2 items-center"onSelect={() => {@@ -301,7 +301,7 @@ const ProjectLinker = ({return (<CommandItem_Shadcn_key={project.id}- value={`${project.name}-${i}`}+ value={`${project.name.replaceAll('"', '')}-${i}`}className="flex gap-2 items-center"onSelect={() => {if (project.id) setForeignProjectId(project.id)diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsxindex 6307c617114..80a0858d954 100644--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx@@ -186,7 +186,7 @@ const GitHubIntegrationConnectionForm = ({return (<CommandItem_Shadcn_key={branch.name}- value={branch.name}+ value={branch.name.replaceAll('"', '')}className="cursor-pointer w-full flex items-center justify-between"onSelect={() => {setOpen(false)diff --git a/apps/studio/components/layouts/AppLayout/BranchDropdown.tsx b/apps/studio/components/layouts/AppLayout/BranchDropdown.tsxindex 5281527950e..17f9a772ba0 100644--- a/apps/studio/components/layouts/AppLayout/BranchDropdown.tsx+++ b/apps/studio/components/layouts/AppLayout/BranchDropdown.tsx@@ -44,7 +44,7 @@ const BranchLink = ({return (<Link passHref href={href}><CommandItem_Shadcn_- value={branch.name}+ value={branch.name.replaceAll('"', '')}className="cursor-pointer w-full flex items-center justify-between"onSelect={() => {setOpen(false)diff --git a/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx b/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsxindex 6a02018ec54..752f0d15be4 100644--- a/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx+++ b/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx@@ -80,7 +80,7 @@ const OrganizationDropdown = ({ isNewNav = false }: OrganizationDropdownProps) =return (<CommandItem_Shadcn_key={org.slug}- value={`${org.name} - ${org.slug}`}+ value={`${org.name.replaceAll('"', '')} - ${org.slug}`}className="cursor-pointer w-full"onSelect={() => {setOpen(false)diff --git a/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx b/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsxindex 9cd404255f5..50323e88add 100644--- a/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx+++ b/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx@@ -67,7 +67,7 @@ const ProjectLink = ({return (<CommandItem_Shadcn_key={project.ref}- value={`${project.name}-${project.ref}`}+ value={`${project.name.replaceAll('"', '')}-${project.ref}`}className="cursor-pointer w-full"onSelect={() => {router.push(href)diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationsFilter.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationsFilter.tsxindex b620c9b5485..be5040a631e 100644--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationsFilter.tsx+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopoverV2/NotificationsFilter.tsx@@ -121,6 +121,7 @@ export const NotificationsFilter = ({ activeTab }: { activeTab: 'inbox' | 'archi{(organizations ?? []).map((org) => (<CommandItem_Shadcn_key={org.slug}+ value={org.name.replaceAll('"', '')}className="flex items-center gap-x-2"onSelect={() => {snap.setFilters(org.slug, 'organizations')