From 51336baee675eb02d7a39397ab12b1bec08c80c9 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 7 Dec 2016 17:15:10 -0500 Subject: [PATCH] fix small bug from undo update from error to sliently failing --- client/modules/IDE/components/Editor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/IDE/components/Editor.jsx b/client/modules/IDE/components/Editor.jsx index 7038efef..475b7014 100644 --- a/client/modules/IDE/components/Editor.jsx +++ b/client/modules/IDE/components/Editor.jsx @@ -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 } });