From 7ff939efd54f1e056a1e10e261183b200f435034 Mon Sep 17 00:00:00 2001
From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
Date: Tue, 13 Aug 2024 16:28:41 +0530
Subject: [PATCH] fix: TypeError cannot read properties of undefined (reading
'id') (#9947)
---
.../conversation/conversationCardComponents/CardLabels.vue | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/javascript/dashboard/components/widgets/conversation/conversationCardComponents/CardLabels.vue b/app/javascript/dashboard/components/widgets/conversation/conversationCardComponents/CardLabels.vue
index 39fd9e047..6c719fc01 100644
--- a/app/javascript/dashboard/components/widgets/conversation/conversationCardComponents/CardLabels.vue
+++ b/app/javascript/dashboard/components/widgets/conversation/conversationCardComponents/CardLabels.vue
@@ -13,8 +13,8 @@ export default {
const accountLabels = useMapGetter('labels/getLabels');
const activeLabels = computed(() => {
- return props.conversationLabels.map(label =>
- accountLabels.value.find(l => l.title === label)
+ return accountLabels.value.filter(({ title }) =>
+ props.conversationLabels.includes(title)
);
});
@@ -83,7 +83,7 @@ export default {