Commit 72bdd254 authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Destroy monaco if you can. Edit if files opened.

parent 487b36d9
......@@ -11,7 +11,7 @@ export default {
},
showButton() {
return this.isCommitable && !this.activeFile.render_error && !this.binary;
return this.isCommitable && !this.activeFile.render_error && !this.binary && this.openedFiles.length;
}
},
methods: {
......
......@@ -8,7 +8,9 @@ const RepoEditor = {
data: () => Store,
destroyed() {
this.monacoInstance.destroy();
if(this.monacoInstance){
this.monacoInstance.destroy();
}
},
mounted() {
......
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