diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-16 14:11:02 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-16 14:11:02 +0000 |
commit | 8135ea993ac33a1ef0780e1c93ec063e0487421a (patch) | |
tree | 15c7231a6a8c3d5c6bbe1398069327cc0e855c6b /app | |
parent | 49c920fbee09ef0af8427d85f8cea313e77c6857 (diff) | |
download | gitlab-ce-8135ea993ac33a1ef0780e1c93ec063e0487421a.tar.gz |
Catches errors when generating lists
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/boards/components/board_blank_state.js | 7 |
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), |