fix not able to add members to event close #56
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user