Skip to content

Commit

Permalink
fix(vue-app): re-call $fetch if data is missing
Browse files Browse the repository at this point in the history
closes #9016
  • Loading branch information
danielroe committed Mar 22, 2021
1 parent 9247190 commit 26972ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vue-app/template/mixins/fetch.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ function createdFullStatic() {
return
}

// If there is a missing payload
if (!data) {
this.$fetch.call(this)
return
}

// Merge data
for (const key in data) {
Vue.set(this.$data, key, data[key])
Expand Down

0 comments on commit 26972ab

Please sign in to comment.