The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix type
Joshen Limdf07b07670de
diff --git a/studio/components/interfaces/Database/Indexes/Indexes.tsx b/studio/components/interfaces/Database/Indexes/Indexes.tsxindex 77c03feea64..304f74b21f2 100644--- a/studio/components/interfaces/Database/Indexes/Indexes.tsx+++ b/studio/components/interfaces/Database/Indexes/Indexes.tsx@@ -122,7 +122,7 @@ const Indexes = () => {{isLoadingIndexes && <GenericSkeletonLoader />}{isErrorIndexes && (- <AlertError error={indexesError} subject="Failed to retrieve database indexes" />+ <AlertError error={indexesError as any} subject="Failed to retrieve database indexes" />)}{isSuccessIndexes && (diff --git a/studio/components/ui/AlertError.tsx b/studio/components/ui/AlertError.tsxindex c45283dd90e..dfd6b976a9a 100644--- a/studio/components/ui/AlertError.tsx+++ b/studio/components/ui/AlertError.tsx@@ -12,7 +12,7 @@ import {export interface AlertErrorProps {ref?: stringsubject?: string- error?: ResponseError | null | unknown+ error?: ResponseError | nullclassName?: string}diff --git a/studio/data/database/indexes-query.ts b/studio/data/database/indexes-query.tsindex 852ceeff634..a1ad90d860a 100644--- a/studio/data/database/indexes-query.ts+++ b/studio/data/database/indexes-query.ts@@ -34,7 +34,7 @@ export type IndexesVariables = getIndexesDefinition & {}export type IndexesData = { result: DatabaseIndex[] }-export type IndexesError = ResponseError+export type IndexesError = unknownexport const useIndexesQuery = <TData extends IndexesData = IndexesData>({ schema, projectRef, connectionString }: IndexesVariables,