Sfoglia il codice sorgente

chore: compatible with es5 (#14268)

tags/1.0.0
KVOJJJin 8 mesi fa
parent
commit
aa6c951e8c
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      web/app/components/base/chat/utils.ts

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

@@ -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…
Annulla
Salva