Skip to content

Commit

Permalink
Fix conversation reverse list (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey authored May 12, 2024
1 parent 94d4918 commit 7efdac3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix conversations reverse",
"packageName": "@acedatacloud/hub",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 0 additions & 2 deletions src/store/chat/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ export const getConversations = async ({
log(getConversations, 'get conversations success', response.data?.items);
commit('setConversations', response.data.items);
const conversations = response.data.items;
// reverse the order of conversations
conversations.reverse();
resolve(conversations);
})
.catch((error) => {
Expand Down
2 changes: 0 additions & 2 deletions src/store/chatdoc/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ export const getConversations = async (
token
})
).data.items;
// reverse the order of conversations
conversations.reverse();
log(getConversations, 'get conversations success', conversations);
commit('setRepository', {
id: payload.repositoryId,
Expand Down

0 comments on commit 7efdac3

Please sign in to comment.