Web: Components: TabledHeader: fixed "clearSize.findLastIndex is not a function", added log
This commit is contained in:
parent
23ce60bc4b
commit
8611b8b0d1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user