From 838142cfdf07890d3e8d5b489deba3bde212373a Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 22 Apr 2025 10:34:52 +0200 Subject: [PATCH] fix problem with parameters --- frontend/src/pages/Login.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/frontend/src/pages/Login.vue b/frontend/src/pages/Login.vue index 9ee6e76b4..40cc15b10 100644 --- a/frontend/src/pages/Login.vue +++ b/frontend/src/pages/Login.vue @@ -79,12 +79,7 @@ const route = useRoute() const store = useStore() const { t } = useI18n() const { mutate } = useMutation(login) -const { mutate: mutateHumhubAutoLogin } = useMutation(authenticateHumhubAutoLoginProject, { - variables: { - project: store.state.project, - }, - enabled: store.state.project, -}) +const { mutate: mutateHumhubAutoLogin } = useMutation(authenticateHumhubAutoLoginProject) // const $loading = useLoading() // TODO needs to be updated but there is some sort of an issue that breaks the app. const { toastError } = useAppToast() const { register } = useAuthLinks() @@ -119,9 +114,10 @@ const onSubmit = handleSubmit(async (values) => { await store.dispatch('login', loginResponse) store.commit('email', values.email) // await loader.hide() - if (store.state.project) { - const result = await mutateHumhubAutoLogin() + const result = await mutateHumhubAutoLogin({ + project: store.state.project, + }) window.location.href = result.data.authenticateHumhubAutoLogin return }