Web: Components: TableHeader: fix

This commit is contained in:
Nikita Gopienko 2024-07-23 19:21:23 +03:00
parent f3a9766994
commit 7f85e8008e

View File

@ -368,11 +368,7 @@ class TableHeader extends React.Component<
if (storageSize) {
const splitStorage = storageSize.split(" ");
if (
(defaultSize &&
splitStorage[splitStorage.length - 2] !== `${defaultSize}px`) ||
getSubstring(splitStorage[0]) <= defaultMinColumnSize
) {
if (getSubstring(splitStorage[0]) <= defaultMinColumnSize) {
localStorage.removeItem(columnStorageName);
this.onResize();
return;
@ -620,7 +616,7 @@ class TableHeader extends React.Component<
}
} else {
let overWidth = 0;
if (!hideColumns) {
if (!hideColumns && !hideColumnsConst) {
// eslint-disable-next-line guard-for-in, no-restricted-syntax
for (const index in tableContainer) {
const item = tableContainer[index];