mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
fixes console error when selecting a pipeline aggregation (#14148)
This commit is contained in:
parent
e0dce5ffbb
commit
c7d147df89
3 changed files with 3 additions and 10 deletions
|
@ -30,11 +30,7 @@ module.directive('vislibSeries', function () {
|
|||
$scope.series = $scope.vis.params.seriesParams;
|
||||
$scope.$watch(() => {
|
||||
return $scope.vis.aggs.map(agg => {
|
||||
try {
|
||||
return agg.makeLabel();
|
||||
} catch (e) {
|
||||
return '';
|
||||
}
|
||||
return agg.makeLabel();
|
||||
}).join();
|
||||
}, () => {
|
||||
const schemaTitle = $scope.vis.type.schemas.metrics[0].title;
|
||||
|
|
|
@ -147,11 +147,7 @@ module.directive('vislibValueAxes', function () {
|
|||
|
||||
$scope.$watch(() => {
|
||||
return $scope.vis.getAggConfig().map(agg => {
|
||||
try {
|
||||
return agg.makeLabel();
|
||||
} catch (e) {
|
||||
return '';
|
||||
}
|
||||
return agg.makeLabel();
|
||||
}).join();
|
||||
}, () => {
|
||||
$scope.updateAxisTitle();
|
||||
|
|
|
@ -17,6 +17,7 @@ const makeNestedLabel = function (aggConfig, label) {
|
|||
return metricLabel;
|
||||
}
|
||||
const metric = aggConfig.vis.aggs.find(agg => agg.id === aggConfig.params.metricAgg);
|
||||
if (!metric) return '';
|
||||
return `${uppercaseLabel} of ${metric.makeLabel()}`;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue