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
1 changed files with 2 additions and 1 deletions

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 }>({