fix small bug from undo update from error to sliently failing

This commit is contained in:
Cassie Tarakajian 2016-12-07 17:15:10 -05:00
parent 604a7ec7e8
commit 51336baee6

View file

@ -146,7 +146,7 @@ class Editor extends React.Component {
initializeDocuments(files) {
this._docs = {};
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
}
});