diff --git a/change/@acedatacloud-hub-00b448cf-8cd3-4401-a057-afea1a70a275.json b/change/@acedatacloud-hub-00b448cf-8cd3-4401-a057-afea1a70a275.json new file mode 100644 index 00000000..704cc665 --- /dev/null +++ b/change/@acedatacloud-hub-00b448cf-8cd3-4401-a057-afea1a70a275.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix conversations reverse", + "packageName": "@acedatacloud/hub", + "email": "cqc@cuiqingcai.com", + "dependentChangeType": "patch" +} diff --git a/src/store/chat/actions.ts b/src/store/chat/actions.ts index 0fbe6714..0fbed877 100644 --- a/src/store/chat/actions.ts +++ b/src/store/chat/actions.ts @@ -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) => { diff --git a/src/store/chatdoc/actions.ts b/src/store/chatdoc/actions.ts index 4f94cfb3..f2381dcb 100644 --- a/src/store/chatdoc/actions.ts +++ b/src/store/chatdoc/actions.ts @@ -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,