From e4274cbfa64d7c364cfd2e0907fda5e459194a70 Mon Sep 17 00:00:00 2001 From: Mangesh-Khairnar Date: Wed, 4 Dec 2019 17:51:08 +0530 Subject: [PATCH] fix: change formatting --- erpnext/public/js/hub/pages/Search.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erpnext/public/js/hub/pages/Search.vue b/erpnext/public/js/hub/pages/Search.vue index 8ab48d0e8d7..103284289bb 100644 --- a/erpnext/public/js/hub/pages/Search.vue +++ b/erpnext/public/js/hub/pages/Search.vue @@ -42,7 +42,7 @@ export default { computed: { page_title() { return this.items.length - ? __(`Results for "${this.search_value}" ${this.category!=='All'? `in category ${this.category}`: ''}`) + ? __(`Results for "${this.search_value}" ${this.category !== 'All'? `in category ${this.category}` : ''}`) : __('No Items found.'); } }, @@ -52,9 +52,10 @@ export default { methods: { get_items() { if (this.category !== 'All') { - this.filters['hub_category']=this.category; + this.filters['hub_category'] = this.category; } - hub.call('get_items', { keyword: this.search_value, + hub.call('get_items', { + keyword: this.search_value, filters: this.filters }) .then((items) => {