From ec964020c4c46ed28d37045aed7c627b3ab6bfb1 Mon Sep 17 00:00:00 2001 From: MateuszMichalowski <79852198+MateuszMichalowski@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:08:14 +0200 Subject: [PATCH] fix(frontend): fix logout issue (#3374) * fix(frontend): post migration fixes * fix(frontend): add network-only option so transactions are refetched properly on another user login. * feat(frontend): remove not needed await on mounted --------- Co-authored-by: einhornimmond --- frontend/src/layouts/DashboardLayout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/layouts/DashboardLayout.vue b/frontend/src/layouts/DashboardLayout.vue index bfd9f2049..ffbebf628 100755 --- a/frontend/src/layouts/DashboardLayout.vue +++ b/frontend/src/layouts/DashboardLayout.vue @@ -219,7 +219,7 @@ const { load: useTransactionsQuery, refetch: useRefetchTransactionsQuery, result: transactionQueryResult, -} = useLazyQuery(transactionsQuery) +} = useLazyQuery(transactionsQuery, {}, { fetchPolicy: 'network-only' }) const { mutate: useLogoutMutation } = useMutation(logout) const { t } = useI18n() const { toastError } = useAppToast()