Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
use correct way to push cols
Browse files Browse the repository at this point in the history
  • Loading branch information
srijken committed Nov 11, 2016
1 parent 6110791 commit ada1ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angular-xlsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ angular.module("ngXlsx", [])

data.forEach(function (sheet) {

var d = {};
var d = { '!cols': []};
var columnDefs = sheet.columnDefs;

var range = {
Expand All @@ -90,7 +90,7 @@ angular.module("ngXlsx", [])
}

if(columnDef.width) {
d['!cols'].wpx = columnDef.width;
d['!cols'].push({wpx: columnDef.width});
}
});

Expand Down

0 comments on commit ada1ac7

Please sign in to comment.