We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6945263 commit 706f3d1Copy full SHA for 706f3d1
task-requests/script.js
@@ -60,22 +60,25 @@ async function getTaskRequests(query = {}, nextLink) {
60
61
if (res.status === 401) {
62
showMessage('ERROR', ErrorMessages.UNAUTHENTICATED);
63
- return;
+ return { data: [] };
64
}
65
66
if (res.status === 403) {
67
showMessage('ERROR', ErrorMessages.UNAUTHORIZED);
68
69
70
71
if (res.status === 404) {
72
showMessage('ERROR', ErrorMessages.NOT_FOUND);
73
74
75
76
showMessage('ERROR', ErrorMessages.SERVER_ERROR);
77
78
} catch (e) {
79
console.error(e);
80
+ showMessage('ERROR', ErrorMessages.SERVER_ERROR);
81
82
83
84
0 commit comments