Skip to content

Commit

Permalink
Fix: If a footer is found to be null or undefined, Excel export could…
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Feb 27, 2024
1 parent 9e2d866 commit 8830dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/buttons.html5.js
Expand Up @@ -516,7 +516,7 @@ function _excelColWidth(data, col) {
var max = data.header[col].length;
var len, lineSplit, str;

if (data.footer && data.footer[col].length > max) {
if (data.footer && data.footer[col] && data.footer[col].length > max) {
max = data.footer[col].length;
}

Expand Down

0 comments on commit 8830dfe

Please sign in to comment.