Fix userStore fetching when not allowed
All checks were successful
/ build (push) Successful in 1m32s
/ deploy (push) Successful in 26s

Fix userStore attempting to fetch the users list when it's either not
logged in or not allowed to fetch the users, causing the schedule page
to not render.
This commit is contained in:
Hornwitser 2025-06-24 16:18:28 +02:00
parent e01e162367
commit 5662b890de

View file

@ -18,7 +18,7 @@ export const useUsersStore = defineStore("users", () => {
}
const actions = {
async fetch() {
if (state.fetched.value) {
if (!accountStore.isCrew || state.fetched.value) {
return state.users;
}
const pending = state.pendingSync.value;