From fb27551a6f9eb1b5e38994ba95f6abc10666dfcb Mon Sep 17 00:00:00 2001 From: Anna No Date: Fri, 22 Apr 2022 18:22:03 +0700 Subject: [PATCH] Fix edit event members update (#1495) Signed-off-by: Anna No --- plugins/calendar-resources/src/components/EditEvent.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/calendar-resources/src/components/EditEvent.svelte b/plugins/calendar-resources/src/components/EditEvent.svelte index f0237a90c6..80efce4a51 100644 --- a/plugins/calendar-resources/src/components/EditEvent.svelte +++ b/plugins/calendar-resources/src/components/EditEvent.svelte @@ -62,13 +62,16 @@ _class={contact.class.Employee} items={object.participants} label={calendar.string.Participants} + noItems={calendar.string.NoParticipants} on:open={(evt) => { client.update(object, { $push: { participants: evt.detail._id } }) }} on:delete={(evt) => { client.update(object, { $pull: { participants: evt.detail._id } }) }} - noItems={calendar.string.NoParticipants} + on:update={(evt) => { + client.update(object, { participants: evt.detail }) + }} />