function utils.book_append_sheet crashes if no sheet name provided #652
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#652
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TypeError: Cannot read property 'length' of undefined at check_ws_name (/***/node_modules/xlsx/xlsx.js:12142:6) at Object.utils.book_append_sheet (/***/node_modules/xlsx/xlsx.js:17594:2) ....
As far as I can tell it's because the sheet name is never SET.
Here's a fix:
@jomel good catch! you don't need a
var
there. The shortest fix is to assignname
within the loop: