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

View file

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