From a0e7f28438862add4cbbaf06b907fba00a930132 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 29 Mar 2019 20:17:37 +0530 Subject: [PATCH] wip --- frappe/public/js/frappe/views/components/DeskModuleBox.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/views/components/DeskModuleBox.vue b/frappe/public/js/frappe/views/components/DeskModuleBox.vue index 3589b3ea12..e57b128033 100644 --- a/frappe/public/js/frappe/views/components/DeskModuleBox.vue +++ b/frappe/public/js/frappe/views/components/DeskModuleBox.vue @@ -62,11 +62,11 @@ export default { } }, dropdown_links() { - return this.links + return this.links.length > 0 ? this.links .filter(link => !link.hidden) .concat([ { label: __('Customize'), action: () => this.$emit('customize'), class: 'border-top' } - ]); + ]) : []; } }, };