fix contacts
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user