fix: Hide empty categories in Show / Hide Cards dialog (#7215)

This commit is contained in:
igrekus 2019-04-07 10:57:16 +03:00 committed by Faris Ansari
parent bb1d5f7107
commit f31e8f0ffa

View file

@ -107,7 +107,7 @@ export default {
});
const d = new frappe.ui.Dialog({
title: __('Show / Hide Cards'),
fields,
fields: fields.filter(f => f.options.length > 0),
primary_action_label: __('Save'),
primary_action: (values) => {
let all_modules = this.modules.map(m => m.module_name);