Skip to content

Commit a46e06c

Browse files
committed
Cleanup foo store module update
1 parent 131204f commit a46e06c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

templates/vue/store/modules/foo/update.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function reset(commit) {
4949
const getters = {};
5050

5151
const actions = {
52-
retrieve({ commit}) {
52+
retrieve({ commit }, id) {
5353
retrieveLoading(commit, true);
5454

5555
return {{{ lc }}}Fetch(id)
@@ -63,9 +63,8 @@ const actions = {
6363
retrieveError(commit, e.message);
6464
});
6565
},
66-
update({ commit, state }) {
66+
update({ commit, state }, item) {
6767
updateError(commit, null);
68-
//createSuccess(commit, null);
6968
updateLoading(commit, true);
7069

7170
return {{{ lc }}}Fetch(item['@id'], {

0 commit comments

Comments
 (0)