From a87aa71ec5e3e91253b1409835d903d2ee4b8a1a Mon Sep 17 00:00:00 2001 From: Benny Samir Hierl Date: Sat, 19 Feb 2022 21:39:40 +0100 Subject: [PATCH] fix issue with late update of data Signed-off-by: Benny Samir Hierl --- src/App.vue | 17 +++++-- src/views/DetailView.vue | 99 ++++++++++++++++++---------------------- src/views/HomeView.vue | 2 +- 3 files changed, 59 insertions(+), 59 deletions(-) diff --git a/src/App.vue b/src/App.vue index bc4f260..65c4594 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,7 +11,19 @@ {{ t('errors.generic.text') }} - + + + + @@ -19,7 +31,6 @@ diff --git a/src/views/DetailView.vue b/src/views/DetailView.vue index 46a68cf..1c75bde 100644 --- a/src/views/DetailView.vue +++ b/src/views/DetailView.vue @@ -25,7 +25,7 @@ const { itemDelete, filteredItems, } = useWishlistStore() -fetch(route.params.slug as string) +await fetch(route.params.slug as string) const title = computed(() => { return state.value?.title @@ -112,67 +112,58 @@ const handleDeleteItem = async (item: WishlistItemType): Promise => {