fix: call activity not showing to number
This commit is contained in:
parent
67f6b1e38d
commit
65bafc1d05
@ -421,8 +421,14 @@ const activities = computed(() => {
|
||||
return props.activities
|
||||
}
|
||||
props.activities.forEach((activity) => {
|
||||
activity.owner_name = getUser(activity.owner).full_name
|
||||
activity.icon = timelineIcon(activity.activity_type)
|
||||
if (
|
||||
activity.activity_type == 'incoming_call' ||
|
||||
activity.activity_type == 'outgoing_call'
|
||||
)
|
||||
return
|
||||
|
||||
activity.owner_name = getUser(activity.owner).full_name
|
||||
activity.type = ''
|
||||
activity.value = ''
|
||||
activity.to = ''
|
||||
|
||||
@ -423,8 +423,6 @@ const tabs = computed(() => {
|
||||
function all_activities() {
|
||||
if (!lead.data) return []
|
||||
if (!calls.data) return lead.data.activities
|
||||
console.log(lead.data.activities[0].creation)
|
||||
console.log(calls.data[0].creation)
|
||||
return [...lead.data.activities, ...calls.data].sort(
|
||||
(a, b) => new Date(b.creation) - new Date(a.creation)
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user