From 2e426423f74a67eeef4c92f2ebb80f6e0d9a17e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Pumar?= Date: Wed, 18 Dec 2024 13:46:31 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"=F0=9F=90=9B=20Try"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a4686ee87c08e8cd37fa7ebc19deb643a314519e. --- argilla-frontend/pages/oauth/_provider/useOAuthViewModel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/argilla-frontend/pages/oauth/_provider/useOAuthViewModel.ts b/argilla-frontend/pages/oauth/_provider/useOAuthViewModel.ts index 5cfd4292bd..74f2a09962 100644 --- a/argilla-frontend/pages/oauth/_provider/useOAuthViewModel.ts +++ b/argilla-frontend/pages/oauth/_provider/useOAuthViewModel.ts @@ -1,4 +1,4 @@ -import { onBeforeMount, useRoute } from "@nuxtjs/composition-api"; +import { useFetch, useRoute } from "@nuxtjs/composition-api"; import { useResolve } from "ts-injecty"; import { ProviderType } from "~/v1/domain/entities/oauth/OAuthProvider"; import { OAuthLoginUseCase } from "~/v1/domain/usecases/oauth-login-use-case"; @@ -17,7 +17,7 @@ export const useOAuthViewModel = () => { const oauthLoginUseCase = useResolve(OAuthLoginUseCase); const { pop } = useLocalStorage(); - onBeforeMount(async () => { + useFetch(async () => { await tryLogin(); });