Bugfix: Fix loop when auto_login = true (#1641)
🐛 (typesStore.ts): set loading to false when an error occurs during fetching types to prevent infinite loading state
This commit is contained in:
parent
4dfcbd59a0
commit
6f52312fe9
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ export const useTypesStore = create<TypesStoreType>((set, get) => ({
|
|||
.catch((error) => {
|
||||
console.error("An error has occurred while fetching types.");
|
||||
console.log(error);
|
||||
setLoading(false);
|
||||
reject();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue