Check that label is string before using it as object key

pull/10616/head
ebb-tide 2018-05-16 15:32:49 -07:00
parent 6890bbec20
commit 15fb883c5f
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ const updateMaxWidths = (
const {widths: Widths} = maxColumnWidths
const maxWidth = _.get(Widths, `${columnLabel}`, 0)
if (isTopRow || currentWidth > maxWidth) {
if ((isTopRow || currentWidth > maxWidth) && _.isString(columnLabel)) {
acc.widths[columnLabel] = currentWidth
acc.totalWidths += currentWidth - maxWidth
}