Web: Components: TableHeader: restored check

This commit is contained in:
Nikita Gopienko 2024-07-23 17:29:48 +03:00
parent dbed7aa23c
commit f3a9766994

View File

@ -368,7 +368,11 @@ class TableHeader extends React.Component<
if (storageSize) {
const splitStorage = storageSize.split(" ");
if (getSubstring(splitStorage[0]) <= defaultMinColumnSize) {
if (
(defaultSize &&
splitStorage[splitStorage.length - 2] !== `${defaultSize}px`) ||
getSubstring(splitStorage[0]) <= defaultMinColumnSize
) {
localStorage.removeItem(columnStorageName);
this.onResize();
return;