fix contacts

This commit is contained in:
kandrusyak
2023-08-03 02:32:23 +03:00
parent 76d95ab0b0
commit 9fe2ceb867

View File

@@ -61,11 +61,13 @@ export default {
}, },
computed: { computed: {
contacts() { contacts() {
let contactList = this.record?.member?.contacts let contactList = this.record?.person?.contacts
?.filter((elem) => elem.kind === "PHONE" || elem.kind === "EMAIL") ?.filter(
(elem) => elem.category === "PHONE" || elem.category === "EMAIL"
)
?.map((elem) => ({ ?.map((elem) => ({
kind: elem.kind, kind: elem.category,
icon: networks.find((item) => item.id === elem.kind)?.icon, icon: networks.find((item) => item.id === elem.category)?.icon,
value: elem.value, value: elem.value,
})); }));
if (this.collapsedDisplayCondition) { if (this.collapsedDisplayCondition) {