Skip to content

Commit

Permalink
will be fixed in #313
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar committed Feb 12, 2024
1 parent d822a04 commit 388902d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/chat/src/store/conversations/conversations.selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 388902d

Please sign in to comment.