Don't keep cached identities query
Otherwise when relogging as a different user you'll get their defaultActor Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
f0233bac60
commit
0b87404986
@ -47,6 +47,7 @@ export async function initializeCurrentActor(apollo: ApolloClient<any>) {
|
||||
|
||||
const result = await apollo.query({
|
||||
query: IDENTITIES,
|
||||
fetchPolicy: 'network-only',
|
||||
});
|
||||
const identities = result.data.identities;
|
||||
if (identities.length < 1) return;
|
||||
|
Loading…
Reference in New Issue
Block a user