api(getState).get(`/api/v1/statuses/${id}/card`).then(response => {
dispatch(fetchStatusCardSuccess(id, response.data));
}).catch(error => {
+ if (error.response.status === 404) {
+ // This is fine
+ return;
+ }
+
dispatch(fetchStatusCardFail(id, error));
});
};
export function fetchStatusCardRequest(id) {
return {
type: STATUS_CARD_FETCH_REQUEST,
- id
+ id,
+ skipLoading: true
};
};
return {
type: STATUS_CARD_FETCH_SUCCESS,
id,
- card
+ card,
+ skipLoading: true
};
};
return {
type: STATUS_CARD_FETCH_FAIL,
id,
- error
+ error,
+ skipLoading: true
};
};