The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: table list sync (#46735)
Vaibhav4c4df75cffcc
diff --git a/apps/studio/components/interfaces/Database/Tables/TableList.tsx b/apps/studio/components/interfaces/Database/Tables/TableList.tsxindex 80a4b5317e7..9b7f5967ef4 100644--- a/apps/studio/components/interfaces/Database/Tables/TableList.tsx+++ b/apps/studio/components/interfaces/Database/Tables/TableList.tsx@@ -205,6 +205,7 @@ export const TableList = ({const entities = formatAllEntities({ tables, views, materializedViews, foreignTables }).filter((x) => visibleTypes.includes(x.type))+ const footerCount = hasNextTablesPage ? tables.length : entities.lengthconst { isSchemaLocked } = useIsProtectedSchema({ schema: selectedSchema })@@ -608,7 +609,7 @@ export const TableList = ({<TableCell colSpan={7} className="text-foreground-muted hover:bg-inherit">{isFetchingNextTablesPage? 'Loading more tables…'- : `${entities.length} ${entities.length === 1 ? 'table' : 'tables'}${+ : `${footerCount} ${footerCount === 1 ? 'table' : 'tables'}${hasNextTablesPage ? ' loaded' : ''}`}</TableCell>diff --git a/apps/studio/data/tables/table-delete-mutation.ts b/apps/studio/data/tables/table-delete-mutation.tsindex dd82ce5d0b2..4fc875a6d13 100644--- a/apps/studio/data/tables/table-delete-mutation.ts+++ b/apps/studio/data/tables/table-delete-mutation.ts@@ -57,6 +57,9 @@ export const useTableDeleteMutation = ({await Promise.all([queryClient.invalidateQueries({ queryKey: tableEditorKeys.tableEditor(projectRef, id) }),queryClient.invalidateQueries({ queryKey: tableKeys.list(projectRef, schema) }),+ queryClient.invalidateQueries({+ queryKey: tableKeys.infiniteListPrefix(projectRef, schema),+ }),queryClient.invalidateQueries({ queryKey: entityTypeKeys.list(projectRef) }),// invalidate all views from this schemaqueryClient.invalidateQueries({ queryKey: viewKeys.listBySchema(projectRef, schema) }),