Compare commits
1 commit
e79545aec8
...
e51f28e214
Author | SHA1 | Date | |
---|---|---|---|
e51f28e214 |
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ const store = createStore({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async postItemComment({commit, dispatch, state, getters}, {id, message}) {
|
async postItemComment({commit, dispatch, state, getters}, {id, message}) {
|
||||||
const {data, success} = await getters.session.post(`/2/items/${id}/comment/`, {comment: message});
|
const {data, success} = await getters.session.post(`/2/${getters.getEventSlug}/item/${id}/comment/`, {comment: message});
|
||||||
if (data && success) {
|
if (data && success) {
|
||||||
state.fetchedData.items = 0;
|
state.fetchedData.items = 0;
|
||||||
await dispatch('loadEventItems');
|
await dispatch('loadEventItems');
|
||||||
|
|
Loading…
Add table
Reference in a new issue