Fix an error that causes test failures (regression 9a5657b)

This commit is contained in:
Adomas Venčkauskas 2022-04-05 10:08:03 +03:00
parent 5b9ac2ca53
commit c510d91461

View file

@ -1333,7 +1333,7 @@ var Columns = class {
for (let column of virtualizedTable.props.columns) {
// Fixed width columns can sometimes somehow obtain a width property
// this fixes it for users that may have run into the bug
if (column.fixedWidth) {
if (column.fixedWidth && typeof columnsSettings[column.dataKey] == "object") {
delete columnsSettings[column.dataKey].width;;
}
column = Object.assign({}, column, columnsSettings[column.dataKey]);