chore: compatible with es5 (#14268)

This commit is contained in:
KVOJJJin 2025-02-25 09:46:54 +08:00 committed by NFish
parent d27de3818c
commit 64e9d96d84
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ function getThreadMessages(tree: ChatItemInTree[], targetMessageId?: string): Ch
let targetNode: ChatItemInTree | undefined let targetNode: ChatItemInTree | undefined
// find path to the target message // find path to the target message
const stack = tree.toReversed().map(rootNode => ({ const stack = tree.slice().reverse().map(rootNode => ({
node: rootNode, node: rootNode,
path: [rootNode], path: [rootNode],
})) }))