Skip to content

Commit 54e49be

Browse files
committed
fix column default arg issue
1 parent 52ffb39 commit 54e49be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/doc/column.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ module.exports = class Column {
276276
return cols.length ? cols : undefined;
277277
}
278278

279-
static fromModel(worksheet, cols = []) {
279+
static fromModel(worksheet, cols) {
280+
cols = cols || [];
280281
const columns = [];
281282
let count = 1;
282283
let index = 0;

0 commit comments

Comments
 (0)