1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

fix-warnings

This commit is contained in:
Michael An
2019-06-21 13:59:17 +08:00
parent dae726b432
commit 479350dc77
4 changed files with 27 additions and 28 deletions

View File

@@ -550,11 +550,11 @@ class LibContentView extends React.Component {
seafileAPI.listDir(repoID, path).then(res => {
let newDirentList = res.data.dirent_list;
let newAddedDirents = newDirentList.filter(item => {
return !nodeChildrenNames.includes(item.name)
})
return !nodeChildrenNames.includes(item.name);
});
newAddedDirents.map(item => {
this.addNodeToTree(item.name, path, item.type);
})
});
});
}