Skip to content

Commit 526e5a1

Browse files
committed
Return response in promise
1 parent f3b49f0 commit 526e5a1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/make-find-mixin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ export default function makeFindMixin (options) {
7373
}
7474

7575
return this.$store.dispatch(`${this[SERVICE_NAME]}/find`, paramsToUse)
76-
.then(() => {
76+
.then(response => {
7777
this[IS_FIND_PENDING] = false
78+
return response
7879
})
7980
}
8081
}

src/make-get-mixin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ export default function makeFindMixin (options) {
6464

6565
if (idToUse) {
6666
return this.$store.dispatch(`${this[SERVICE_NAME]}/get`, [ idToUse, paramsToUse ])
67-
.then(() => {
67+
.then(response => {
6868
this[IS_GET_PENDING] = false
69+
return response
6970
})
7071
}
7172
}

0 commit comments

Comments
 (0)