浏览代码

fix: undefined "self"

This is JS not python xD

(cherry picked from commit 5062b9b26a)
version-14
Ankush Menat 2 年前
committed by Ankush Menat
父节点
当前提交
3e31275a85
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/public/js/frappe/file_uploader/FileUploader.vue

+ 1
- 1
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: {


正在加载...
取消
保存