fix: log detail panel not showing any message when total count greate… (#10119)

This commit is contained in:
Hash Brown
2024-10-31 16:02:20 +08:00
committed by GitHub
parent 0154a26e0b
commit 73f29484e7
4 changed files with 288 additions and 2 deletions

View File

@@ -195,8 +195,8 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {
conversation_id: detail.id,
limit: 10,
}
if (allChatItems.at(-1)?.id)
params.first_id = allChatItems.at(-1)?.id.replace('question-', '')
if (allChatItems[0]?.id)
params.first_id = allChatItems[0]?.id.replace('question-', '')
const messageRes = await fetchChatMessages({
url: `/apps/${appDetail?.id}/chat-messages`,
params,