Skip to content

Commit

Permalink
fix: validate email communications before rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Sep 29, 2023
1 parent 31074ec commit afa7f61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/Activities.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<DotIcon class="h-2.5 w-2.5 text-gray-600" :radius="2" />
</div>
<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 }}
</div>
</div>
Expand Down Expand Up @@ -764,6 +764,7 @@ const activities = computed(() => {
if (props.title == 'Activity') {
activities = all_activities()
} else if (props.title == 'Emails') {
if (!versions.data) return []
activities = versions.data.filter(
(activity) => activity.activity_type === 'communication'
)
Expand Down

0 comments on commit afa7f61

Please sign in to comment.