Skip to content

Commit

Permalink
Merge pull request #115 from PagerDuty/issue-114
Browse files Browse the repository at this point in the history
  • Loading branch information
gsreynolds authored Jun 29, 2023
2 parents f6a0987 + 1d5da03 commit ad486e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/redux/response_plays/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ export function* getResponsePlays() {
if (e.status === 401) {
e.message = i18next.t('Unauthorized Access');
}
if (e.response.status === 301) {
// user just doesn't have response plays
yield put({
type: FETCH_RESPONSE_PLAYS_COMPLETED,
responsePlays: [],
});
return;
}
yield put({ type: FETCH_RESPONSE_PLAYS_ERROR, message: e.message });
yield put({
type: UPDATE_CONNECTION_STATUS_REQUESTED,
Expand Down

0 comments on commit ad486e9

Please sign in to comment.