Skip to content

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

Sentry fixes

Joshen Lim83f2b3c8715c
diff --git a/packages/ui/src/components/Input/Input.tsx b/packages/ui/src/components/Input/Input.tsx
index a1caec8de16..a78fade9330 100644
--- a/packages/ui/src/components/Input/Input.tsx
+++ b/packages/ui/src/components/Input/Input.tsx
@@ -97,7 +97,7 @@ function Input({
// }, [errors, touched])
function onCopy(value: any) {
- navigator.clipboard.writeText(value).then(
+ navigator.clipboard.writeText(value)?.then(
function () {
/* clipboard successfully set */
setCopyLabel('Copied')
diff --git a/studio/localStores/storageExplorer/StorageExplorerStore.js b/studio/localStores/storageExplorer/StorageExplorerStore.js
index 6d75f5f36db..4596d565f6e 100644
--- a/studio/localStores/storageExplorer/StorageExplorerStore.js
+++ b/studio/localStores/storageExplorer/StorageExplorerStore.js
@@ -1485,7 +1485,7 @@ class StorageExplorerStore {
.list(formattedPathToFolder, options)
folderContents = folderContents.concat(data)
options.offset += options.limit
- if (data.length < options.limit) {
+ if ((data || []).length < options.limit) {
break
}
}
diff --git a/studio/pages/vercel/integrate.tsx b/studio/pages/vercel/integrate.tsx
index 7da27b95c78..f986fdd8174 100644
--- a/studio/pages/vercel/integrate.tsx
+++ b/studio/pages/vercel/integrate.tsx
@@ -10,8 +10,7 @@ import Divider from 'components/ui/Divider'
import { Dictionary } from 'components/grid'
import { useStore, withAuth } from 'hooks'
-import { API_URL, IS_PLATFORM } from 'lib/constants'
-import { PROJECT_ENDPOINT_PROTOCOL } from 'pages/api/constants'
+import { API_URL } from 'lib/constants'
import { get } from 'lib/common/fetch'
import {
VERCEL_INTEGRATION_CONFIGS,
@@ -370,8 +369,8 @@ const ProjectLinks: FC = observer(() => {
// Then create env for vercel project with supabase project
const vercelEnvs = prepareVercelEvns(defaultVercelEnvs, {
- endpoint: `${projectDetails.apiService.protocol ?? 'https'}://${
- projectDetails.apiService.endpoint ?? '-'
+ endpoint: `${projectDetails.autoApiService.protocol ?? 'https'}://${
+ projectDetails.autoApiService.endpoint ?? '-'
}`,
anon_key: projectDetails.autoApiService.defaultApiKey,
service_key: projectDetails.autoApiService.serviceApiKey,