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:
Lance Edgar 2023-12-29 19:38:41 -06:00
parent 86fbf8f164
commit 18936d9efd

View file

@ -511,7 +511,14 @@ export default {
this.record = response.data.data this.record = response.data.data
this.$emit('refresh', this.record) this.$emit('refresh', this.record)
if (this.hasRows) { 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 => { }, response => {
if (response.status == 403) { // forbidden if (response.status == 403) { // forbidden