fix(desk): Add default value for custom setting in utility
This commit is contained in:
parent
99c0388ae7
commit
e24a2afa47
2 changed files with 2 additions and 2 deletions
|
|
@ -309,7 +309,7 @@ def update_desk_section_settings(desk_section, new_settings):
|
|||
if home_settings:
|
||||
home_settings = json.loads(home_settings)
|
||||
else:
|
||||
return
|
||||
return {}
|
||||
|
||||
new_settings = json.loads(new_settings)
|
||||
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ export default {
|
|||
};
|
||||
},
|
||||
|
||||
get_customized_modules(default_modules, customization_settings) {
|
||||
get_customized_modules(default_modules, customization_settings={}) {
|
||||
return default_modules.map(module => {
|
||||
let customized_module = JSON.parse(JSON.stringify(module));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue