Prevent loading authorized groups when current actor isn't loading in OrganizerPickerWrapper

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-11-04 11:29:12 +01:00
parent 74639e7203
commit 08ce9b6f84
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 3 additions and 0 deletions

View File

@ -185,6 +185,9 @@ const { result: personMembershipsResult } = useQuery(
page: 1,
limit: 10,
groupId: route.query?.actorId,
}),
() => ({
enabled: currentActor.value?.id !== undefined,
})
);