fix(vue-app): re-call $fetch if data is missing in payload (#9026)

This commit is contained in:
Daniel Roe 2021-03-23 18:04:54 +00:00 committed by GitHub
parent 24c71dc3c3
commit 2c4cc04b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,12 @@ function createdFullStatic() {
return return
} }
// If there is a missing payload
if (!data) {
this.$fetch()
return
}
// Merge data // Merge data
for (const key in data) { for (const key in data) {
Vue.set(this.$data, key, data[key]) Vue.set(this.$data, key, data[key])