Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-16 17:11:02 +0300
committerPhil Hughes <me@iamphill.com>2017-03-16 17:11:02 +0300
commit8135ea993ac33a1ef0780e1c93ec063e0487421a (patch)
tree15c7231a6a8c3d5c6bbe1398069327cc0e855c6b /app/assets/javascripts/boards
parent49c920fbee09ef0af8427d85f8cea313e77c6857 (diff)
Catches errors when generating lists
Diffstat (limited to 'app/assets/javascripts/boards')
-rw-r--r--app/assets/javascripts/boards/components/board_blank_state.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/boards/components/board_blank_state.js b/app/assets/javascripts/boards/components/board_blank_state.js
index 32c5be0a5fc..be9e3d35fa6 100644
--- a/app/assets/javascripts/boards/components/board_blank_state.js
+++ b/app/assets/javascripts/boards/components/board_blank_state.js
@@ -69,6 +69,13 @@ export default {
list.label.id = listObj.label.id;
list.getIssues();
});
+ })
+ .catch(() => {
+ Store.removeList(undefined, 'label');
+ Cookies.remove('issue_board_welcome_hidden', {
+ path: '',
+ });
+ Store.addBlankState();
});
},
clearBlankState: Store.removeBlankState.bind(Store),