From dc3b3a3836202888fa21682233e6ba8ff64e0033 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 8 Nov 2019 16:15:14 +0530 Subject: [PATCH] fix: Fallback for getFilters --- src/components/Controls/Link.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Controls/Link.vue b/src/components/Controls/Link.vue index 526b6d3a..f349a8b9 100644 --- a/src/components/Controls/Link.vue +++ b/src/components/Controls/Link.vue @@ -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;