1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-30 13:23:14 +00:00

Modify some formatting issues

This commit is contained in:
zxj96 2019-05-07 10:06:24 +08:00
parent 3b2c834209
commit cd56076f0d

View File

@ -996,8 +996,8 @@ class LibContentView extends React.Component {
// else do nothing
}
moveDirent = (direntPath, moveToDirentPath=null) => {
let name = direntPath.slice(direntPath.lastIndexOf('/') + 1);
moveDirent = (direntPath, moveToDirentPath = null) => {
let name = Utils.getFileName(direntPath);
if (moveToDirentPath === this.state.path) {
this.loadDirentList(this.state.path)
return;