diff --git a/frappe/public/js/frappe/file_uploader/FileUploader.vue b/frappe/public/js/frappe/file_uploader/FileUploader.vue index 9cf30453f4..11b7ef2a5a 100644 --- a/frappe/public/js/frappe/file_uploader/FileUploader.vue +++ b/frappe/public/js/frappe/file_uploader/FileUploader.vue @@ -228,7 +228,7 @@ export default { }); } if (this.restrictions.max_number_of_files == null && this.doctype) { - this.restrictions.max_number_of_files = frappe.get_meta(self.doctype).max_attachments; + this.restrictions.max_number_of_files = frappe.get_meta(this.doctype)?.max_attachments; } }, watch: {