renamed baseIndex to indexOffset

This commit is contained in:
Jim Unger 2016-09-23 13:09:38 -05:00
parent f4717fa5eb
commit 5d5b581399

View file

@ -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);
});
});
}