Procházet zdrojové kódy

fix: undefined "self"

This is JS not python xD

(cherry picked from commit 5062b9b26a)
version-14
Ankush Menat před 2 roky
committed by Ankush Menat
rodič
revize
3e31275a85
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      frappe/public/js/frappe/file_uploader/FileUploader.vue

+ 1
- 1
frappe/public/js/frappe/file_uploader/FileUploader.vue Zobrazit soubor

@@ -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: {


Načítá se…
Zrušit
Uložit