mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Fix storage size limit input validation
This commit is contained in:
1 parent
d61daa9cd3
commit
67e5ba99c9
1 file changed
+1
-1
@@ -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}.`
|
||||
|
||||
Reference in new issue
Block a user