Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Bridgewater committed Nov 30, 2016
1 parent c9223ce commit b393fe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/stream/xlsx/workbook-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ WorkbookWriter.prototype = {
get nextId() {
// find the next unique spot to add worksheet
var i;
for (i = 1; i < this._worksheets.length; i++) {
for (i = 0; i < this._worksheets.length; i++) {
if (!this._worksheets[i]) {
return i;
}
}
return this._worksheets.length || 1;
return this._worksheets.length;
},
addWorksheet: function(name, options) {
// it's possible to add a worksheet with different than default
Expand Down

0 comments on commit b393fe9

Please sign in to comment.