The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix schema of undefined error
Joshen Lime8bc81b1eed9
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsxindex 425ed9b90cd..54659502d20 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx@@ -410,13 +410,13 @@ const SidePanelEditor = ({queryClient.invalidateQueries(sqlKeys.query(project?.ref, ['foreign-key-constraints']))await Promise.all([queryClient.invalidateQueries(- sqlKeys.query(project?.ref, [selectedTable!.schema, selectedTable!.name])+ sqlKeys.query(project?.ref, [selectedTableToEdit.schema, selectedTableToEdit.name])),queryClient.invalidateQueries(sqlKeys.query(project?.ref, ['table-definition',- selectedTable!.schema,- selectedTable!.name,+ selectedTableToEdit.schema,+ selectedTableToEdit.name,])),queryClient.invalidateQueries(entityTypeKeys.list(project?.ref)),@@ -431,7 +431,7 @@ const SidePanelEditor = ({}} catch (error: any) {saveTableError = true- ui.setNotification({ id: toastId, category: 'error', message: error.message })+ ui.setNotification({ error, id: toastId, category: 'error', message: error.message })}if (!saveTableError) {diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsxindex 8855532415e..289de9cfcce 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx@@ -1,19 +1,7 @@import Link from 'next/link'import { FC, useEffect, useState } from 'react'import { isUndefined, isEmpty } from 'lodash'-import {- Badge,- Checkbox,- SidePanel,- Input,- Alert,- IconBookOpen,- Button,- Modal,- IconShieldOff,- IconLock,- IconAlertOctagon,-} from 'ui'+import { Badge, Checkbox, SidePanel, Input, Alert, IconBookOpen, Button, Modal } from 'ui'import type { PostgresTable, PostgresType } from '@supabase/postgres-meta'import { useStore } from 'hooks'