Web: Table: fix
This commit is contained in:
parent
bfd517d690
commit
69265fe6a0
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user