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