Web: Files: removed unused code

This commit is contained in:
Nikita Gopienko 2021-11-08 14:04:52 +03:00
parent ffddbbe1ba
commit 5c5db26dc4
2 changed files with 0 additions and 6 deletions

View File

@ -7,10 +7,6 @@ const StyledSectionPaging = styled.div`
`; `;
class SectionPaging extends React.Component { class SectionPaging extends React.Component {
// shouldComponentUpdate(nextProps) {
// return !equal(this.props, nextProps);
// }
render() { render() {
return <StyledSectionPaging {...this.props} />; return <StyledSectionPaging {...this.props} />;
} }

View File

@ -382,8 +382,6 @@ class FilesStore {
} }
if (!newItems.find((x) => x.id == folderId)) { if (!newItems.find((x) => x.id == folderId)) {
//newItems.push(data.current);
path.splice(data.pathParts.length - 1, 1); path.splice(data.pathParts.length - 1, 1);
const subfolders = await getSubfolders(data.current.parentId); const subfolders = await getSubfolders(data.current.parentId);
loopTreeFolders(path, treeFolders, subfolders, 0); loopTreeFolders(path, treeFolders, subfolders, 0);