Commit db60fbe7 authored by Eric Eastwood's avatar Eric Eastwood

Ignore related issue link that was not found

This could be caused by a double request or could have been remoevd by
someone else in another tab
parent 5bedd81b
...@@ -84,7 +84,12 @@ export default { ...@@ -84,7 +84,12 @@ export default {
.then((data) => { .then((data) => {
this.store.setRelatedIssues(data.issues); this.store.setRelatedIssues(data.issues);
}) })
.catch(() => new Flash('An error occurred while removing related issues.')); .catch((res) => {
if (res && res.status !== 404) {
// eslint-disable-next-line no-new
new Flash('An error occurred while removing related issues.');
}
});
} else { } else {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Flash('We could not determine the path to remove the related issue'); new Flash('We could not determine the path to remove the related issue');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment