Fix userStore fetching when not allowed
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:
parent
e01e162367
commit
5662b890de
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ export const useUsersStore = defineStore("users", () => {
|
||||||
}
|
}
|
||||||
const actions = {
|
const actions = {
|
||||||
async fetch() {
|
async fetch() {
|
||||||
if (state.fetched.value) {
|
if (!accountStore.isCrew || state.fetched.value) {
|
||||||
return state.users;
|
return state.users;
|
||||||
}
|
}
|
||||||
const pending = state.pendingSync.value;
|
const pending = state.pendingSync.value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue