Skip to content
Snippets Groups Projects
Commit 7240a491 authored by AndiMajore's avatar AndiMajore
Browse files

catching missing config

parent 7440acd1
Branches
Tags
No related merge requests found
......@@ -64,7 +64,7 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
}, 200);
// add settings to config
const configObj = typeof config === 'string' ? JSON5.parse(config) : config;
const configObj = typeof config === 'string' ? config.length === 0 ? {}: JSON5.parse(config) : config;
this.myConfig = merge(this.myConfig, configObj);
// update Drugst.One according to the settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment