Skip to content

Commit

Permalink
fix(chat): fix remove folder logic (Issue #671)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar committed Feb 12, 2024
1 parent 25f845c commit 10579fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/chat/src/store/conversations/conversations.epics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ const deleteFolderEpic: AppEpic = (action$, state$) =>
switchMap(({ folderId, conversations, folders }) => {
const childFolders = new Set([
folderId,
...conversations.flatMap((conv) => getAllPathsFromPath(conv.folderId)),
...conversations.map((conv) => conv.folderId),
]);
const removedConversationsIds = conversations.map((conv) => conv.id);
const actions: Observable<AnyAction>[] = [];
Expand Down

0 comments on commit 10579fb

Please sign in to comment.