fix: validate email communications before rendering
This commit is contained in:
parent
31074ecd40
commit
afa7f61599
@ -108,7 +108,7 @@
|
|||||||
<DotIcon class="h-2.5 w-2.5 text-gray-600" :radius="2" />
|
<DotIcon class="h-2.5 w-2.5 text-gray-600" :radius="2" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
<TaskPriorityIcon class="!w-2 !h-2" :priority="task.priority" />
|
<TaskPriorityIcon class="!h-2 !w-2" :priority="task.priority" />
|
||||||
{{ task.priority }}
|
{{ task.priority }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -764,6 +764,7 @@ const activities = computed(() => {
|
|||||||
if (props.title == 'Activity') {
|
if (props.title == 'Activity') {
|
||||||
activities = all_activities()
|
activities = all_activities()
|
||||||
} else if (props.title == 'Emails') {
|
} else if (props.title == 'Emails') {
|
||||||
|
if (!versions.data) return []
|
||||||
activities = versions.data.filter(
|
activities = versions.data.filter(
|
||||||
(activity) => activity.activity_type === 'communication'
|
(activity) => activity.activity_type === 'communication'
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user