mirror of https://github.com/langgenius/dify.git
chore: compatible with es5 (#14268)
This commit is contained in:
parent
d27de3818c
commit
64e9d96d84
|
@ -100,7 +100,7 @@ function getThreadMessages(tree: ChatItemInTree[], targetMessageId?: string): Ch
|
|||
let targetNode: ChatItemInTree | undefined
|
||||
|
||||
// find path to the target message
|
||||
const stack = tree.toReversed().map(rootNode => ({
|
||||
const stack = tree.slice().reverse().map(rootNode => ({
|
||||
node: rootNode,
|
||||
path: [rootNode],
|
||||
}))
|
||||
|
|
Loading…
Reference in New Issue