Fix some queries being called even when not logged-in
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
4831379d13
commit
d71e76d692
|
@ -216,7 +216,7 @@ import RouteName from "../router/name";
|
|||
loggedUser: {
|
||||
query: USER_SETTINGS,
|
||||
skip() {
|
||||
return this.currentUser.isLoggedIn === false;
|
||||
return !this.currentUser || this.currentUser.isLoggedIn === false;
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -592,6 +592,7 @@ import { eventMetaDataList } from "../../services/EventMetadata";
|
|||
},
|
||||
skip() {
|
||||
return (
|
||||
!this.currentActor.id ||
|
||||
!this.event?.attributedTo ||
|
||||
!this.event?.attributedTo?.preferredUsername
|
||||
);
|
||||
|
|
|
@ -372,7 +372,9 @@ import Subtitle from "../components/Utils/Subtitle.vue";
|
|||
currentUser: CURRENT_USER_CLIENT,
|
||||
loggedUser: {
|
||||
query: USER_SETTINGS,
|
||||
fetchPolicy: "no-cache",
|
||||
skip() {
|
||||
return !this.currentUser || this.currentUser.isLoggedIn === false;
|
||||
},
|
||||
error() {
|
||||
return null;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue