From 6f52312fe98b007b92f62f467c035ba39404fcd1 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:43:42 -0300 Subject: [PATCH] Bugfix: Fix loop when auto_login = true (#1641) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 (typesStore.ts): set loading to false when an error occurs during fetching types to prevent infinite loading state --- src/frontend/src/stores/typesStore.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/stores/typesStore.ts b/src/frontend/src/stores/typesStore.ts index 808a5d646..142118f44 100644 --- a/src/frontend/src/stores/typesStore.ts +++ b/src/frontend/src/stores/typesStore.ts @@ -29,6 +29,7 @@ export const useTypesStore = create((set, get) => ({ .catch((error) => { console.error("An error has occurred while fetching types."); console.log(error); + setLoading(false); reject(); }); });