From d154041df0deb8b237dc8f903b9151b2a606ecb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Thu, 19 Feb 2026 21:48:16 +0100 Subject: [PATCH] fix not able to add members to event close #56 --- src/components/AddToEvent.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/AddToEvent.vue b/src/components/AddToEvent.vue index 0c789c9..cba28bc 100644 --- a/src/components/AddToEvent.vue +++ b/src/components/AddToEvent.vue @@ -74,7 +74,9 @@ function open(title: string, members: Members) { appApi .get('events') .then((resp) => { - events.value.push(...resp.data.map((e: Event) => (e.name = e.name + ' (' + e.date + ')'))); + events.value.push( + ...resp.data.map((e: Event) => ({ ...e, name: e.name + ' (' + e.date + ')' })), + ); }) .catch((err) => { NotifyResponse(err, 'error');