Only set value if it exists in the StorageConfig
This commit is contained in:
parent
be8afc2c12
commit
c5966ed21b
1 changed files with 5 additions and 2 deletions
|
@ -790,8 +790,11 @@ MountConfigListView.prototype = _.extend({
|
|||
if (storageConfig.backendOptions) {
|
||||
$td.children().each(function() {
|
||||
var input = $(this);
|
||||
input.val(storageConfig.backendOptions[input.data('parameter')]);
|
||||
highlightInput(input);
|
||||
var val = storageConfig.backendOptions[input.data('parameter')];
|
||||
if (val !== undefined) {
|
||||
input.val(storageConfig.backendOptions[input.data('parameter')]);
|
||||
highlightInput(input);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue