[go: nahoru, domu]

Skip to content

Commit

Permalink
🐛 Fixed bug with params parallel call
Browse files Browse the repository at this point in the history
  • Loading branch information
ftgibran committed Aug 20, 2017
1 parent 053b870 commit f8310de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ApiRequest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@
else if (key) {
// if request has multiple requests and a specific key then
keys.push(key)
resources.push(this.resource[key](this.params))
resources.push(this.resource[key](this.params && this.params[key]))
} else {
// if request has multiple requests then
for (let key in this.resource) {
keys.push(key)
resources.push(this.resource[key](this.params))
resources.push(this.resource[key](this.params && this.params[key]))
}
}
Expand Down

0 comments on commit f8310de

Please sign in to comment.