mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
prevented the watch expression from clearing changes on initialization
This commit is contained in:
parent
b1fa8af627
commit
a82c26c8ae
1 changed files with 2 additions and 2 deletions
|
@ -199,8 +199,8 @@ define([
|
|||
return metricDefaults(m);
|
||||
});
|
||||
|
||||
$scope.$watch('panel.mode', function (m) {
|
||||
if (_.isUndefined(m)) {
|
||||
$scope.$watch('panel.mode', function (m, prev) {
|
||||
if (m === prev || _.isUndefined(m)) {
|
||||
return;
|
||||
}
|
||||
$scope.panel.display_field = $scope.modeInfo[m].defaults.display_field;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue