diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-15 15:10:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-15 15:10:17 +0300 |
commit | e894595ad8ebdbd565bacaeb126d44f80a636fd8 (patch) | |
tree | 97f898aa3f24b209924bfcee6ee46072807e9b02 /app/assets/javascripts/api.js | |
parent | a79324ad1f94b0c497a89c1ee35bd7d33f318008 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/api.js')
-rw-r--r-- | app/assets/javascripts/api.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js index f922d78a74d..8daccae3467 100644 --- a/app/assets/javascripts/api.js +++ b/app/assets/javascripts/api.js @@ -390,7 +390,10 @@ const Api = { params: { ...defaults, ...options }, }) .then(({ data }) => callback(data)) - .catch(() => flash(__('Something went wrong while fetching projects'))); + .catch(() => { + flash(__('Something went wrong while fetching projects')); + callback(); + }); }, commit(id, sha, params = {}) { |