[Table] Test CSV Export behavior

This commit is contained in:
Victor Woeltjen
2016-05-25 15:07:17 -07:00
parent 3eb960cf5a
commit 438511c5f7
2 changed files with 29 additions and 3 deletions

View File

@ -47,7 +47,7 @@ define(
setDefaults($scope);
$scope.exportAsCSV = function () {
var headers = $scope.headers;
var headers = $scope.displayHeaders;
exportService.exportCSV($scope.displayRows.map(function (row) {
return headers.reduce(function (r, header) {
r[header] = row[header].text;