Skip to content

Commit 92dbb3e

Browse files
authored
Protect against undefined configuration (#632)
1 parent 9dd113d commit 92dbb3e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

web_client/src/store/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ const {
442442
Object.assign(state, { ...state, ...initState });
443443
},
444444
setMIQAConfig(state, configuration) {
445+
if (!configuration) configuration = {};
445446
if (!configuration.version) configuration.version = '';
446447
state.MIQAConfig = configuration;
447448
},

0 commit comments

Comments
 (0)