diff options
Diffstat (limited to 'app/assets/javascripts/notes')
-rw-r--r-- | app/assets/javascripts/notes/components/diff_with_note.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/components/diff_with_note.vue b/app/assets/javascripts/notes/components/diff_with_note.vue index c3915ef299b..a58a040fb4e 100644 --- a/app/assets/javascripts/notes/components/diff_with_note.vue +++ b/app/assets/javascripts/notes/components/diff_with_note.vue @@ -48,7 +48,7 @@ export default { }, }, mounted() { - if (!this.hasTruncatedDiffLines) { + if (this.isTextFile && !this.hasTruncatedDiffLines) { this.fetchDiff(); } }, |