From a4ec09a744df00e004f567f4b035fabdcc3d7e29 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Wed, 22 May 2024 16:01:21 +0530 Subject: [PATCH] chore: review fixes --- .../widgets/conversation/linear/Issue.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/linear/Issue.vue b/app/javascript/dashboard/components/widgets/conversation/linear/Issue.vue index 246d613c0..05cd3ab88 100644 --- a/app/javascript/dashboard/components/widgets/conversation/linear/Issue.vue +++ b/app/javascript/dashboard/components/widgets/conversation/linear/Issue.vue @@ -30,12 +30,15 @@ const formattedDate = computed(() => { }); const assignee = computed(() => { - return props.issue.assignee - ? { - name: props.issue.assignee?.name || '', - thumbnail: props.issue.assignee?.avatarUrl || '', - } - : null; + const assigneeDetails = props.issue.assignee; + + if (!assigneeDetails) return null; + const { name, avatarUrl } = assigneeDetails; + + return { + name, + thumbnail: avatarUrl, + }; }); const labels = computed(() => {