Fix actorId query sometimes being lost when creating an event from group

Closes #712

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-06-23 16:12:47 +02:00
parent b02fecfc78
commit 4dde5b8275
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 0 additions and 1 deletions

View File

@ -190,7 +190,6 @@ export default class OrganizerPickerWrapper extends Vue {
setInitialActor(): void {
if (this.$route.query?.actorId) {
const actorId = this.$route.query?.actorId as string;
this.$router.replace({ query: undefined });
const actor = this.userMemberships.elements.find(
({ parent: { id }, role }) =>
actorId === id && MEMBER_ROLES.includes(role)