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:
parent
b02fecfc78
commit
4dde5b8275
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user