Skip to content
Prev Previous commit
Next Next commit
added worksheet protection variable initialization to constructor
  • Loading branch information
Reza Heidari committed May 11, 2020
commit e36637a87c277b5ff71baf30b53a3cc63a12e81d
4 changes: 3 additions & 1 deletion lib/stream/xlsx/worksheet-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ class WorksheetWriter {

this._media = [];

// worksheet protection
this.sheetProtection = null;

// start writing to stream now
this._writeOpenWorksheet();

Expand Down Expand Up @@ -429,7 +432,6 @@ class WorksheetWriter {
}

removeConditionalFormatting(filter) {
console.log('conditionalFormatting', this.conditionalFormatting);
if (typeof filter === 'number') {
this.conditionalFormatting.splice(filter, 1);
} else if (filter instanceof Function) {
Expand Down