fix: file size limit for guest pages (#359)

This commit is contained in:
Favour Olayinka
2024-03-22 12:10:18 +01:00
committed by GitHub
parent f56cee5acd
commit b41d6c0e60
2 changed files with 6 additions and 2 deletions

View File

@@ -343,7 +343,7 @@ export default {
return !this.typesWithoutPlaceholder.includes(this.field.type)
},
mbLimit() {
return this.form?.max_file_size ?? this.currentWorkspace?.max_file_size
return (this.form?.workspace && this.form?.workspace.max_file_size) ? this.form?.workspace?.max_file_size : 10
},
prefillSelectsOptions() {
if (!['select', 'multi_select'].includes(this.field.type)) return {}