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

repair create file bug

This commit is contained in:
shanshuirenjia
2018-12-06 15:01:40 +08:00
parent fc3b1d5b77
commit d29051b5d2
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ class DirView extends React.Component {
onAddFile = (filePath, isDraft) => {
let repoID = this.state.repoID;
seafileAPI.createDir(repoID, filePath).then(() => {
seafileAPI.createFile(repoID, filePath, isDraft).then(() => {
let name = Utils.getFileName(filePath);
let dirent = this.createDirent(name, 'file');
let direntList = this.addItem(dirent, 'file');