mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
fix-warnings
This commit is contained in:
@@ -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);
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user