chore: compatible with es5 (#14268)
This commit is contained in:
parent
c4f4dfc3fb
commit
aa6c951e8c
@ -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],
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user