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
commit 73f29484e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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,