mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-01-30 13:31:13 +00:00
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
4d4fdaaffe
commit
e954188c34
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ export async function initializeCurrentActor(apollo: ApolloClient<any>) {
|
||||||
|
|
||||||
const result = await apollo.query({
|
const result = await apollo.query({
|
||||||
query: IDENTITIES,
|
query: IDENTITIES,
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
});
|
});
|
||||||
const identities = result.data.identities;
|
const identities = result.data.identities;
|
||||||
if (identities.length < 1) return;
|
if (identities.length < 1) return;
|
||||||
|
|
Loading…
Reference in a new issue