fix small bug from undo update from error to sliently failing
This commit is contained in:
parent
604a7ec7e8
commit
51336baee6
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class Editor extends React.Component {
|
||||||
initializeDocuments(files) {
|
initializeDocuments(files) {
|
||||||
this._docs = {};
|
this._docs = {};
|
||||||
files.forEach(file => {
|
files.forEach(file => {
|
||||||
if (file.fileType === 'file') {
|
if (file.name !== 'root') {
|
||||||
this._docs[file.id] = CodeMirror.Doc(file.content, this.getFileMode(file.name)); // eslint-disable-line
|
this._docs[file.id] = CodeMirror.Doc(file.content, this.getFileMode(file.name)); // eslint-disable-line
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue