From 797ff309938545ffab782f7f08898dc0914dc930 Mon Sep 17 00:00:00 2001 From: Ilya Bondar Date: Mon, 12 Feb 2024 09:17:47 +0100 Subject: [PATCH] will be fixed in https://github.com/epam/ai-dial-chat/issues/313 --- apps/chat/src/store/conversations/conversations.selectors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/chat/src/store/conversations/conversations.selectors.ts b/apps/chat/src/store/conversations/conversations.selectors.ts index 14e2085317..13a590494b 100644 --- a/apps/chat/src/store/conversations/conversations.selectors.ts +++ b/apps/chat/src/store/conversations/conversations.selectors.ts @@ -395,12 +395,12 @@ export const isPublishConversationVersionUnique = createSelector( (_state: RootState, _entityId: string, version: string) => version, ], (state, entityId, version) => { - const conversation = selectConversation(state, entityId) as Conversation; // TODO: fix + const conversation = selectConversation(state, entityId) as Conversation; // TODO: will be fixed in https://github.com/epam/ai-dial-chat/issues/313 if (!conversation || conversation?.publishVersion === version) return false; const conversations = selectConversations(state) - .map((conv) => conv as Conversation) // TODO: fix + .map((conv) => conv as Conversation) // TODO: will be fixed in https://github.com/epam/ai-dial-chat/issues/313 .filter( (conv) => conv.originalId === entityId && conv.publishVersion === version,