Skip to content

Commit

Permalink
Merge pull request #1 from huihui0606/patch-3
Browse files Browse the repository at this point in the history
Update builder.js
  • Loading branch information
jrohland authored Jul 15, 2022
2 parents 2d67781 + b92533d commit 1b3fb01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/lib/workbook/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ let writeToBuffer = (wb) => {
};

if (promiseObj.wb.sheets.length === 0) {
promiseObj.wb.Worksheet();
promiseObj.wb.addWorksheet();
}

addRootContentTypesXML(promiseObj)
Expand Down Expand Up @@ -630,4 +630,4 @@ let workbookXML = (wb) => {
module.exports = {
writeToBuffer,
workbookXML
};
};

0 comments on commit 1b3fb01

Please sign in to comment.