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 Limd72c2ff7e712
diff --git a/studio/components/ui/AlertError.tsx b/studio/components/ui/AlertError.tsx
index dfd6b976a9a..c45283dd90e 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
+ error?: ResponseError | null | unknown
className?: string
}
diff --git a/studio/data/sql/execute-sql-query.ts b/studio/data/sql/execute-sql-query.ts
index bff0df93183..7d6790ba814 100644
--- a/studio/data/sql/execute-sql-query.ts
+++ b/studio/data/sql/execute-sql-query.ts
@@ -10,8 +10,6 @@ import { post } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { useCallback } from 'react'
import { sqlKeys } from './keys'
-import { noop } from 'lodash'
-import { ResponseError } from 'types'
export type Error = { code: number; message: string; requestId: string }
@@ -66,7 +64,7 @@ export async function executeSql(
}
export type ExecuteSqlData = Awaited<ReturnType<typeof executeSql>>
-export type ExecuteSqlError = ResponseError
+export type ExecuteSqlError = unknown
export const useExecuteSqlQuery = <TData = ExecuteSqlData>(
{ projectRef, connectionString, sql, queryKey, handleError }: ExecuteSqlVariables,