fix(desk): check if not settings found for home

This commit is contained in:
Prateeksha Singh 2019-03-13 15:00:27 +05:30
parent c2ff91b6e9
commit b6b4aa2cb0

View file

@ -32,6 +32,8 @@ export default {
module.count = this.get_module_count(module.module_name);
});
const home_settings = frappe.boot.home_settings || '{}';
return {
route_str: frappe.get_route()[1],
module_label: '',
@ -51,7 +53,7 @@ export default {
// },
// }
home_settings: JSON.parse(frappe.boot.home_settings)
home_settings: JSON.parse(home_settings)
};
},
methods: {