1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-25 01:12:30 +00:00

Prevent loading group membership status before we get person information

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-27 18:13:08 +02:00
parent 231f99cd1e
commit 8efb17d78e
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -716,7 +716,8 @@ const { result, subscribeToMore } = useQuery<{
() => ({
enabled:
currentActor.value?.id !== undefined &&
group.value?.preferredUsername !== undefined,
group.value?.preferredUsername !== undefined &&
usernameWithDomain(group.value) !== "",
})
);
subscribeToMore<{ actorId: string; group: string }>({