From 18936d9efd082539fcee4f8179a90f152857aa07 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 29 Dec 2023 19:38:41 -0600 Subject: [PATCH] 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 --- src/components/model-crud/ByjoveModelCrud.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/model-crud/ByjoveModelCrud.vue b/src/components/model-crud/ByjoveModelCrud.vue index 6b3af32..25068f0 100644 --- a/src/components/model-crud/ByjoveModelCrud.vue +++ b/src/components/model-crud/ByjoveModelCrud.vue @@ -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