|
|
|
@ -357,7 +357,9 @@ class MainContentContainer extends Component {
|
|
|
|
|
this.fetchRepositoryCode(props, null, null, true)
|
|
|
|
|
} else{
|
|
|
|
|
this.setState({ isEditablePath, currentPath: path });
|
|
|
|
|
this.oldRepositoryCode = fetchRepositoryCodeResponse.data.content || '';
|
|
|
|
|
this.oldRepositoryCode = ((fetchRepositoryCodeResponse.data.content === true || !fetchRepositoryCodeResponse.data.content)
|
|
|
|
|
? '' : fetchRepositoryCodeResponse.data.content);
|
|
|
|
|
|
|
|
|
|
this.updateRepositoryCode(this.oldRepositoryCode, updateCodeMirror)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|