summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2018-02-20 17:32:25 +1100
committerSimon Knox <psimyn@gmail.com>2018-02-20 17:32:25 +1100
commit6ceb2cb3c0f84bd78161c01ed97efae079c8a3ba (patch)
tree66cff6685b2c7ecad4ef71a96f68ba0fc00670d3
parentb44b4d4d649c6b48b537909932a8cd3606f472b7 (diff)
downloadgitlab-ce-6ceb2cb3c0f84bd78161c01ed97efae079c8a3ba.tar.gz
only show error if there is an errorfix-diff-flash
-rw-r--r--app/assets/javascripts/single_file_diff.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/single_file_diff.js b/app/assets/javascripts/single_file_diff.js
index 48dd91bdf06..0cd6e69811a 100644
--- a/app/assets/javascripts/single_file_diff.js
+++ b/app/assets/javascripts/single_file_diff.js
@@ -88,6 +88,8 @@ export default class SingleFileDiff {
if (cb) cb();
})
- .catch(createFlash(__('An error occurred while retrieving diff')));
+ .catch(() => {
+ createFlash(__('An error occurred while retrieving diff'));
+ });
}
}