Fix for exclusive lists not working

Params were in the wrong order so I was passing "isExclusive" to "replies_policy", oops.
This commit is contained in:
Darius Kazemi 2021-04-22 16:52:36 -07:00
parent 4fe7cfc4be
commit b2270fd37d

View File

@ -157,7 +157,7 @@ export const createListFail = error => ({
error, error,
}); });
export const updateList = (id, title, shouldReset, replies_policy, isExclusive) => (dispatch, getState) => { export const updateList = (id, title, shouldReset, isExclusive, replies_policy) => (dispatch, getState) => {
dispatch(updateListRequest(id)); dispatch(updateListRequest(id));
api(getState).put(`/api/v1/lists/${id}`, { title, replies_policy, is_exclusive: !!isExclusive }).then(({ data }) => { api(getState).put(`/api/v1/lists/${id}`, { title, replies_policy, is_exclusive: !!isExclusive }).then(({ data }) => {