mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
fix bugs
This commit is contained in:
@@ -17,7 +17,7 @@ class CreateFile extends React.Component {
|
||||
super(props);
|
||||
this.state = {
|
||||
parentPath: '',
|
||||
childName: props.fileType,
|
||||
childName: props.fileType || '',
|
||||
isDraft: false,
|
||||
errMessage: '',
|
||||
};
|
||||
|
@@ -249,10 +249,12 @@ class Draft extends React.Component {
|
||||
}
|
||||
|
||||
getDraftInfo = () => {
|
||||
if (draftStatus === 'open') {
|
||||
seafileAPI.getFileInfo(draftRepoID, draftFilePath).then((res) => {
|
||||
this.setState({ draftInfo: res.data });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
getChangedNodes = () => {
|
||||
const nodes = this.refs.diffViewer.value.document.nodes;
|
||||
|
Reference in New Issue
Block a user