The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix storage size limit input validation
Joshen Lim67e5ba99c926
diff --git a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsxindex 745469b8b1c..ddd3faf4ec9 100644--- a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx@@ -50,7 +50,7 @@ const StorageConfig = ({ config, projectRef }: any) => {const onValidate = (values: any) => {const errors = {} as any- if (values.fileSizeLimit > STORAGE_FILE_SIZE_LIMIT_MAX_BYTES) {+ if (values.fileSizeLimit > formattedMaxLimit) {errors['fileSizeLimit'] = `Maximum limit is up to ${formattedMaxLimit.toLocaleString()} ${selectedUnit}.`