Skip to content

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

Fix type

Joshen Limdf07b07670de
diff --git a/studio/components/interfaces/Database/Indexes/Indexes.tsx b/studio/components/interfaces/Database/Indexes/Indexes.tsx
index 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.tsx
index c45283dd90e..dfd6b976a9a 100644
--- a/studio/components/ui/AlertError.tsx
+++ b/studio/components/ui/AlertError.tsx
@@ -12,7 +12,7 @@ import {
export interface AlertErrorProps {
ref?: string
subject?: string
- error?: ResponseError | null | unknown
+ error?: ResponseError | null
className?: string
}
diff --git a/studio/data/database/indexes-query.ts b/studio/data/database/indexes-query.ts
index 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 = unknown
export const useIndexesQuery = <TData extends IndexesData = IndexesData>(
{ schema, projectRef, connectionString }: IndexesVariables,