Browse Source

chore: compatible with es5 (#14268)

tags/1.0.0
KVOJJJin 8 months ago
parent
commit
aa6c951e8c
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      web/app/components/base/chat/utils.ts

+ 1
- 1
web/app/components/base/chat/utils.ts View File

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…
Cancel
Save