From ff21396bc699916897b86ef7af8927ca987d8f06 Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Wed, 19 Jun 2024 14:48:09 +0200 Subject: [PATCH] [Bug] Put back subject is email right drawer (#5955) Fix https://github.com/twentyhq/twenty/issues/5903 --- .../emails/right-drawer/components/RightDrawerEmailThread.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/activities/emails/right-drawer/components/RightDrawerEmailThread.tsx b/packages/twenty-front/src/modules/activities/emails/right-drawer/components/RightDrawerEmailThread.tsx index d7d0407261..09c98810b2 100644 --- a/packages/twenty-front/src/modules/activities/emails/right-drawer/components/RightDrawerEmailThread.tsx +++ b/packages/twenty-front/src/modules/activities/emails/right-drawer/components/RightDrawerEmailThread.tsx @@ -71,6 +71,7 @@ export const RightDrawerEmailThread = () => { ? visibleMessages.slice(2, visibleMessagesCount - 1) : []; const lastMessage = visibleMessages[visibleMessagesCount - 1]; + const subject = visibleMessages[0]?.subject; return ( @@ -79,7 +80,7 @@ export const RightDrawerEmailThread = () => { ) : ( <> {firstMessages.map((message) => (