Web: Table: fix

This commit is contained in:
Nikita Gopienko 2024-05-02 16:22:06 +03:00
parent bfd517d690
commit 69265fe6a0
2 changed files with 1 additions and 8 deletions

View File

@ -361,9 +361,7 @@ class FilesTableHeader extends React.Component {
const storageColumns = localStorage.getItem(this.props.tableStorageName);
const splitColumns = storageColumns && storageColumns.split(",");
const resetColumnsSize =
(splitColumns && splitColumns.length !== columns.length) ||
!splitColumns ||
isFrame;
(splitColumns && splitColumns.length !== columns.length) || !splitColumns;
const tableColumns = columns.map((c) => c.enable && c.key);

View File

@ -44,7 +44,6 @@ const COLUMNS_SIZE_INFO_PANEL = `filesColumnsSizeInfoPanel_ver-${TableVersions.F
const COLUMNS_ROOMS_SIZE_INFO_PANEL = `roomsColumnsSizeInfoPanel_ver-${TableVersions.Rooms}`;
const COLUMNS_TRASH_SIZE_INFO_PANEL = `trashColumnsSizeInfoPanel_ver-${TableVersions.Trash}`;
const COLUMNS_RECENT_SIZE_INFO_PANEL = `recentColumnsSizeInfoPanel_ver-${TableVersions.Recent}`;
const COLUMNS_SDK_SIZE_INFO_PANEL = `filesSDKColumnsSizeInfoPanel_ver-${TableVersions.Files}`;
class TableStore {
authStore;
@ -408,8 +407,6 @@ class TableStore {
const userId = this.userStore.user?.id;
const isFrame = this.settingsStore.isFrame;
const tableStorageName = isRooms
? `${TABLE_ROOMS_COLUMNS}=${userId}`
: getIsAccountsPeople()
@ -454,8 +451,6 @@ class TableStore {
const userId = this.userStore.user?.id;
const isFrame = this.settingsStore.isFrame;
if (isFrame) return `${COLUMNS_SDK_SIZE_INFO_PANEL}=${userId}`;
const columnInfoPanelStorageName = isRooms
? `${COLUMNS_ROOMS_SIZE_INFO_PANEL}=${userId}`
: isTrashFolder