Web:Client:Section: fix list of My documents after moving from Settings or Accounts
This commit is contained in:
parent
122349273d
commit
b25ed3dfd0
@ -90,7 +90,7 @@ const StyledTableContainer = styled(TableContainer)`
|
||||
.table-container_file-name-cell,
|
||||
.table-container_row-context-menu-wrapper {
|
||||
border-bottom: ${(props) =>
|
||||
`1px solid ${props.theme.filesSection.tableView.row.borderColor}`};
|
||||
`1px solid ${props.theme.filesSection.tableView.row.borderColor}`};
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -129,7 +129,6 @@ const Table = ({
|
||||
const tagRef = useRef(null);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
const width = window.innerWidth;
|
||||
|
||||
if ((viewAs !== "table" && viewAs !== "row") || !setViewAs) return;
|
||||
@ -178,6 +177,10 @@ const Table = ({
|
||||
}
|
||||
}, []);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!isRooms) setTagCount(0);
|
||||
}, [isRooms]);
|
||||
|
||||
const filesListNode = useMemo(() => {
|
||||
return filesList.map((item, index) => (
|
||||
<TableRow
|
||||
|
Loading…
Reference in New Issue
Block a user