From 9fe2ceb86720707b6bf7757567747cea738f9d5f Mon Sep 17 00:00:00 2001 From: kandrusyak Date: Thu, 3 Aug 2023 02:32:23 +0300 Subject: [PATCH] fix contacts --- .../newCalendar/components/CalendarRecordCard.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/newCalendar/components/CalendarRecordCard.vue b/src/pages/newCalendar/components/CalendarRecordCard.vue index 8944ef3..6fca76f 100644 --- a/src/pages/newCalendar/components/CalendarRecordCard.vue +++ b/src/pages/newCalendar/components/CalendarRecordCard.vue @@ -61,11 +61,13 @@ export default { }, computed: { contacts() { - let contactList = this.record?.member?.contacts - ?.filter((elem) => elem.kind === "PHONE" || elem.kind === "EMAIL") + let contactList = this.record?.person?.contacts + ?.filter( + (elem) => elem.category === "PHONE" || elem.category === "EMAIL" + ) ?.map((elem) => ({ - kind: elem.kind, - icon: networks.find((item) => item.id === elem.kind)?.icon, + kind: elem.category, + icon: networks.find((item) => item.id === elem.category)?.icon, value: elem.value, })); if (this.collapsedDisplayCondition) {