mirror of
https://github.com/frappe/books.git
synced 2024-12-23 19:39:07 +00:00
fix: Fallback for getFilters
This commit is contained in:
parent
15e4dc6314
commit
dc3b3a3836
@ -46,7 +46,9 @@ export default {
|
||||
},
|
||||
async getFilters(keyword) {
|
||||
let doc = await frappe.getDoc(this.doctype, this.name);
|
||||
return this.df.getFilters ? await this.df.getFilters(keyword, doc) : {};
|
||||
return this.df.getFilters
|
||||
? (await this.df.getFilters(keyword, doc)) || {}
|
||||
: {};
|
||||
},
|
||||
async openNewDoc() {
|
||||
let doctype = this.df.target;
|
||||
|
Loading…
Reference in New Issue
Block a user