summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/components/repo_editor.vue
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-05 10:46:19 +0100
committerPhil Hughes <me@iamphill.com>2018-04-05 12:51:21 +0100
commit55c6b8b12cc4a9e1a271c22dda5c7124c3e96ff7 (patch)
tree9393f4d03c017b3536d0d9410618eab45da03789 /app/assets/javascripts/ide/components/repo_editor.vue
parentd0378125afbd835b9245e15d66fb96eb7d32e0af (diff)
downloadgitlab-ce-55c6b8b12cc4a9e1a271c22dda5c7124c3e96ff7.tar.gz
fixed karma & eslint
Diffstat (limited to 'app/assets/javascripts/ide/components/repo_editor.vue')
-rw-r--r--app/assets/javascripts/ide/components/repo_editor.vue4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/components/repo_editor.vue b/app/assets/javascripts/ide/components/repo_editor.vue
index 008b2a01b56..43c5c47b951 100644
--- a/app/assets/javascripts/ide/components/repo_editor.vue
+++ b/app/assets/javascripts/ide/components/repo_editor.vue
@@ -69,9 +69,7 @@ export default {
path: this.file.path,
baseSha: this.currentMergeRequest ? this.currentMergeRequest.baseCommitSha : '',
})
- .then(() => {
- return this.updateViewer(this.file.pending ? 'diff' : 'editor');
- })
+ .then(() => this.updateViewer(this.file.pending ? 'diff' : this.viewer))
.then(() => {
this.updateDelayViewerUpdated(false);
this.createEditorInstance();