Web: Components: TabledHeader: fixed "clearSize.findLastIndex is not a function", added log

This commit is contained in:
Nikita Gopienko 2024-08-12 16:43:46 +03:00
parent 23ce60bc4b
commit 8611b8b0d1

View File

@ -232,6 +232,12 @@ class TableHeaderComponent extends React.Component<
const maxSize = Math.max.apply(Math, clearSize); const maxSize = Math.max.apply(Math, clearSize);
const defaultSize = columns[activeColumnIndex - 1].defaultSize; const defaultSize = columns[activeColumnIndex - 1].defaultSize;
if (!Array.isArray(clearSize)) {
console.log("addNewColumns clearSize", clearSize);
return true;
}
const indexOfMaxSize = clearSize.findLastIndex((s) => s === maxSize); const indexOfMaxSize = clearSize.findLastIndex((s) => s === maxSize);
const addedColumn = 1; const addedColumn = 1;