renamed baseIndex to indexOffset
This commit is contained in:
parent
f4717fa5eb
commit
5d5b581399
|
@ -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…
Reference in a new issue