mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[field editor] Clone paramDefaults before assigning
This commit is contained in:
parent
f836516c45
commit
fa26f8207b
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ define(function (require) {
|
|||
if (!changedFormat || !missingFormat) return;
|
||||
|
||||
// reset to the defaults, but make sure it's an object
|
||||
self.formatParams = _.assign({}, getFieldFormatType().paramDefaults);
|
||||
self.formatParams = _.assign({}, _.cloneDeep(getFieldFormatType().paramDefaults));
|
||||
});
|
||||
|
||||
$scope.$watch('editor.formatParams', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue