Skip to content

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

fix ts build error

Alaister Youngda0e196bf9e2
diff --git a/studio/data/query-client.ts b/studio/data/query-client.ts
index 80dee15c3c3..73cbb94e64b 100644
--- a/studio/data/query-client.ts
+++ b/studio/data/query-client.ts
@@ -15,7 +15,7 @@ export function getQueryClient() {
typeof error === 'object' &&
error !== null &&
'code' in error &&
- error.code === 404
+ (error as any).code === 404
) {
return false
}
diff --git a/studio/hooks/misc/useProfile.tsx b/studio/hooks/misc/useProfile.tsx
index 93901e82cd3..a41439114b3 100644
--- a/studio/hooks/misc/useProfile.tsx
+++ b/studio/hooks/misc/useProfile.tsx
@@ -25,7 +25,7 @@ function useProfile() {
const { isLoading, ...result } = useProfileQuery({
onError(err) {
// if the user does not yet exist, create a profile for them
- if (typeof err === 'object' && err !== null && 'code' in err && err.code === 404) {
+ if (typeof err === 'object' && err !== null && 'code' in err && (err as any).code === 404) {
createProfile()
}
},