From d586b6cced34d663f018203e99aecbb9c6ac3158 Mon Sep 17 00:00:00 2001 From: Kushal Pandya Date: Thu, 20 Apr 2017 11:11:51 +0000 Subject: Add ES lint support to identify poorly written Promises --- app/assets/javascripts/milestone_select.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/assets/javascripts/milestone_select.js') diff --git a/app/assets/javascripts/milestone_select.js b/app/assets/javascripts/milestone_select.js index 773fe3233a7..bebd0aa357e 100644 --- a/app/assets/javascripts/milestone_select.js +++ b/app/assets/javascripts/milestone_select.js @@ -164,6 +164,9 @@ .then(function () { $dropdown.trigger('loaded.gl.dropdown'); $loading.fadeOut(); + }) + .catch(() => { + $loading.fadeOut(); }); } else { selected = $selectbox.find('input[type="hidden"]').val(); -- cgit v1.2.1