|
|
@ -43,7 +43,7 @@ export const fetchFilters = () => (dispatch, getState) => {
|
|
|
|
export const createFilterStatus = (params, onSuccess, onFail) => (dispatch, getState) => {
|
|
|
|
export const createFilterStatus = (params, onSuccess, onFail) => (dispatch, getState) => {
|
|
|
|
dispatch(createFilterStatusRequest());
|
|
|
|
dispatch(createFilterStatusRequest());
|
|
|
|
|
|
|
|
|
|
|
|
api(getState).post(`/api/v1/filters/${params.filter_id}/statuses`, params).then(response => {
|
|
|
|
api(getState).post(`/api/v2/filters/${params.filter_id}/statuses`, params).then(response => {
|
|
|
|
dispatch(createFilterStatusSuccess(response.data));
|
|
|
|
dispatch(createFilterStatusSuccess(response.data));
|
|
|
|
if (onSuccess) onSuccess();
|
|
|
|
if (onSuccess) onSuccess();
|
|
|
|
}).catch(error => {
|
|
|
|
}).catch(error => {
|
|
|
|