Ver código fonte

chore: compatible with es5 (#14268)

tags/1.0.0
KVOJJJin 8 meses atrás
pai
commit
aa6c951e8c
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      web/app/components/base/chat/utils.ts

+ 1
- 1
web/app/components/base/chat/utils.ts Ver arquivo

@@ -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],
}))

Carregando…
Cancelar
Salvar