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

View File

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