Commit 4f3da7be authored by Eric Eastwood's avatar Eric Eastwood

Fix editing of page-loaded file

getContent was called for the file and the directory it was in causing
`isTree` to change to `true`. Then when you went to edit the file, it
was still `true`.
parent 0280361f
...@@ -38,7 +38,6 @@ const RepoEditor = { ...@@ -38,7 +38,6 @@ const RepoEditor = {
setupEditor() { setupEditor() {
this.showHide(); this.showHide();
if (this.isTree) return;
Helper.setMonacoModelFromLanguage(); Helper.setMonacoModelFromLanguage();
}, },
...@@ -114,7 +113,7 @@ const RepoEditor = { ...@@ -114,7 +113,7 @@ const RepoEditor = {
}, },
blobRaw() { blobRaw() {
if (Helper.monacoInstance) { if (Helper.monacoInstance && !this.isTree) {
this.setupEditor(); this.setupEditor();
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment