From d518e0a2b1bc71db2b36506a136ba843b2f31baa Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Tue, 18 Jun 2024 07:08:26 +0530 Subject: [PATCH] fix: empty message list text string crash bug (#2556) --- package/src/components/MessageList/MessageList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/src/components/MessageList/MessageList.tsx b/package/src/components/MessageList/MessageList.tsx index fa218def00..7d1dc59e6c 100644 --- a/package/src/components/MessageList/MessageList.tsx +++ b/package/src/components/MessageList/MessageList.tsx @@ -1157,9 +1157,9 @@ const MessageListWithContext = < {!loading && ( <> - {messageListLengthAfterUpdate && StickyHeader && ( + {messageListLengthAfterUpdate && StickyHeader ? ( - )} + ) : null} {!disableTypingIndicator && TypingIndicator && (