diff --git a/fe_calckey/frontend/client/src/components/MagNotifications.vue b/fe_calckey/frontend/client/src/components/MagNotifications.vue index ba3ec85..871d502 100644 --- a/fe_calckey/frontend/client/src/components/MagNotifications.vue +++ b/fe_calckey/frontend/client/src/components/MagNotifications.vue @@ -442,8 +442,9 @@ const prepend = (item: packed.PackNotification): void => { const itemsNew = [currNotification, group.value]; items.value = [ { - ...group, + id: currNotification.id, type: "group", + created_at: currNotification.created_at, value: itemsNew, users: itemsNew.map((n) => { switch (n.type) { @@ -460,6 +461,8 @@ const prepend = (item: packed.PackNotification): void => { ...items.value, ]; } else if (group.type === "group") { + group.id = currNotification.id; + group.created_at = currNotification.created_at; group.value = [currNotification, ...group.value]; group.users = group.value.map((n) => { switch (n.type) {