mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
renamed baseIndex to indexOffset
This commit is contained in:
parent
f4717fa5eb
commit
5d5b581399
1 changed files with 2 additions and 2 deletions
|
@ -48,9 +48,9 @@ uiModules
|
|||
|
||||
//the aggs have been reordered in [group] and we need
|
||||
//to apply that ordering to [vis.aggs]
|
||||
const baseIndex = $scope.vis.aggs.indexOf($scope.group[0]);
|
||||
const indexOffset = $scope.vis.aggs.indexOf($scope.group[0]);
|
||||
_.forEach($scope.group, (agg, index) => {
|
||||
_.move($scope.vis.aggs, agg, baseIndex + index);
|
||||
_.move($scope.vis.aggs, agg, indexOffset + index);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue