Fix some queries being called even when not logged-in

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-08-13 16:56:51 +02:00
parent 4831379d13
commit d71e76d692
3 changed files with 5 additions and 2 deletions

View File

@@ -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;
},
},
},