mirror of
https://github.com/open-webui/open-webui
synced 2025-01-29 22:08:07 +00:00
refac
This commit is contained in:
parent
ed75f72358
commit
27dd6ef14e
@ -115,9 +115,10 @@
|
||||
|
||||
$: if (history.currentId !== null) {
|
||||
let _messages = [];
|
||||
console.log(history.currentId);
|
||||
|
||||
let currentMessage = history.messages[history.currentId];
|
||||
while (currentMessage !== null) {
|
||||
while (currentMessage) {
|
||||
_messages.unshift({ ...currentMessage });
|
||||
currentMessage =
|
||||
currentMessage.parentId !== null ? history.messages[currentMessage.parentId] : null;
|
||||
|
Loading…
Reference in New Issue
Block a user