Only override grid column widths in table block when they are defined

This commit is contained in:
Andrew Kingston 2024-06-10 08:00:58 +01:00
parent e1bc9d54f1
commit ae863a6e16
1 changed files with 3 additions and 1 deletions

View File

@ -90,9 +90,11 @@
columns.forEach((column, idx) => { columns.forEach((column, idx) => {
overrides[column.field] = { overrides[column.field] = {
displayName: column.label, displayName: column.label,
width: column.width,
order: idx, order: idx,
} }
if (column.width) {
overrides[column.field].width = column.width
}
}) })
return overrides return overrides
} }