Skip to content

Commit db37777

Browse files
author
Marvin Zhang
committed
fix: update sorting parameter in loadConversations for consistency
- Changed sorting parameter in loadConversations from JSON.stringify format to a simpler string format for better readability and maintainability.
1 parent c61b4b1 commit db37777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/chat/ChatConsole.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const loadConversations = async () => {
6666
const res = await get('/ai/chat/conversations', {
6767
page: 1,
6868
size: 500,
69-
sort: JSON.stringify([{ key: 'last_message_at', direction: 'desc' }]),
69+
sort: '-last_message_at',
7070
});
7171
conversations.value = res.data || [];
7272
} catch (error) {

0 commit comments

Comments
 (0)