From 4d9131ba7ea05e150b5c8a332ddf612d72f6055b Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:57:43 -0600 Subject: [PATCH] fix: loading causing stale data to present in form(#650) --- frontend/pages/item/[id]/index/edit.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/pages/item/[id]/index/edit.vue b/frontend/pages/item/[id]/index/edit.vue index 73b8c51..493aab0 100644 --- a/frontend/pages/item/[id]/index/edit.vue +++ b/frontend/pages/item/[id]/index/edit.vue @@ -23,7 +23,11 @@ const labelStore = useLabelStore(); const labels = computed(() => labelStore.labels); - const { data: nullableItem, refresh } = useAsyncData(async () => { + const { + data: nullableItem, + refresh, + pending: requestPending, + } = useAsyncData(async () => { const { data, error } = await api.items.get(itemId.value); if (error) { toast.error("Failed to load item"); @@ -450,7 +454,7 @@ Delete -
+