Add delay when fetching rows data for model CRUD component
hoping this actually works, but can't reproduce the problem locally so will just have to wait and see
This commit is contained in:
parent
86fbf8f164
commit
18936d9efd
1 changed files with 8 additions and 1 deletions
|
@ -511,7 +511,14 @@ export default {
|
|||
this.record = response.data.data
|
||||
this.$emit('refresh', this.record)
|
||||
if (this.hasRows) {
|
||||
this.fetchRows(uuid)
|
||||
// TODO: was seeing occasional errors when a batch
|
||||
// view was loaded, and it tried to fetch rows but
|
||||
// somehow the uuid was not passed along and
|
||||
// server failed to build a query filter. so
|
||||
// hoping the nextTick() delay fixes it..?
|
||||
this.$nextTick(() => {
|
||||
this.fetchRows(uuid)
|
||||
})
|
||||
}
|
||||
}, response => {
|
||||
if (response.status == 403) { // forbidden
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue