Skip to content

Commit 4cc9f66

Browse files
committed
fix transpilation bug for async arrow function
1 parent 08d548e commit 4cc9f66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/service-module/service-module.actions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function makeServiceActions(service) {
4949
commit('setPending', 'get')
5050
return service
5151
.get(id, params)
52-
.then(async item => {
52+
.then(async function(item) {
5353
await dispatch('addOrUpdate', item)
5454
commit('unsetPending', 'get')
5555
return state.keyedById[id]
@@ -130,7 +130,7 @@ export default function makeServiceActions(service) {
130130

131131
return service
132132
.update(id, data, params)
133-
.then(async item => {
133+
.then(async function(item) {
134134
await dispatch('addOrUpdate', item)
135135
commit('unsetPending', 'update')
136136
return state.keyedById[id]
@@ -153,7 +153,7 @@ export default function makeServiceActions(service) {
153153

154154
return service
155155
.patch(id, data, params)
156-
.then(async item => {
156+
.then(async function(item) {
157157
await dispatch('addOrUpdate', item)
158158
commit('unsetPending', 'patch')
159159
return state.keyedById[id]

0 commit comments

Comments
 (0)