From 9cc90424b16dfad2f9f35096d35a53e38189f540 Mon Sep 17 00:00:00 2001 From: Andrey Mikhadyuk Date: Mon, 8 Jan 2024 14:17:18 +0300 Subject: [PATCH] fix error when marking feed item as seen without commonId --- src/pages/common/components/ChatComponent/ChatComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/common/components/ChatComponent/ChatComponent.tsx b/src/pages/common/components/ChatComponent/ChatComponent.tsx index 28054171e2..7e4c27dcfb 100644 --- a/src/pages/common/components/ChatComponent/ChatComponent.tsx +++ b/src/pages/common/components/ChatComponent/ChatComponent.tsx @@ -565,7 +565,7 @@ export default function ChatComponent({ markChatMessageItemAsSeen({ chatChannelId: feedItemId, }); - } else { + } else if (commonId) { markDiscussionMessageItemAsSeen({ feedObjectId: feedItemId, commonId,