Skip to content

Commit

Permalink
Merge pull request #168 from nzzdev/release-5.0.9
Browse files Browse the repository at this point in the history
Release 5.0.9
  • Loading branch information
fromdusttilldawn authored Feb 7, 2022
2 parents 489b274 + ba30d49 commit a005384
Show file tree
Hide file tree
Showing 4 changed files with 705 additions and 705 deletions.
4 changes: 2 additions & 2 deletions helpers/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function getNumericColumns(data) {
// data[0].length is undefined when creating a new item
if (data[0] !== undefined) {
Array2D.forRow(data, 0, (cell, rowIndex, columnIndex) => {
if (columns[columnIndex].isNumeric) {
if (columns[columnIndex] && columns[columnIndex].isNumeric) {
numericColumns.push({ title: cell, index: columnIndex });
}
});
Expand Down Expand Up @@ -101,7 +101,7 @@ function getTableData(data, footnotes, options) {
let type = "text";
let value = cell;
let classes = [];
if (columns[columnIndex].isNumeric) {
if (columns[columnIndex] && columns[columnIndex].isNumeric) {
type = "numeric";
classes.push("s-font-note--tabularnums");

Expand Down
Loading

0 comments on commit a005384

Please sign in to comment.