diff options
author | Simon Knox <psimyn@gmail.com> | 2018-02-20 17:32:25 +1100 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2018-02-20 17:32:25 +1100 |
commit | 6ceb2cb3c0f84bd78161c01ed97efae079c8a3ba (patch) | |
tree | 66cff6685b2c7ecad4ef71a96f68ba0fc00670d3 | |
parent | b44b4d4d649c6b48b537909932a8cd3606f472b7 (diff) | |
download | gitlab-ce-6ceb2cb3c0f84bd78161c01ed97efae079c8a3ba.tar.gz |
only show error if there is an errorfix-diff-flash
-rw-r--r-- | app/assets/javascripts/single_file_diff.js | 4 |
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')); + }); } } |