Skip to content

Commit e9675eb

Browse files
authored
Allow loading config with missing values. Fixes #1650 (#1651)
1 parent 36a7bd9 commit e9675eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/viz/ConfigDialog.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ define([
260260

261261
widget.setValue = config => {
262262
entries.forEach(entry => {
263-
if (entry.widget) {
264-
entry.widget.setValue(config[entry.id || entry.name]);
263+
const value = config[entry.id || entry.name];
264+
if (entry.widget && value !== undefined) {
265+
entry.widget.setValue(value);
265266
}
266267
});
267268
return config;

0 commit comments

Comments
 (0)