mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 00:59:52 +00:00
refac
This commit is contained in:
parent
276ce3374d
commit
5a168ecc2a
@ -38,13 +38,16 @@
|
||||
|
||||
$: if (history && history.currentId) {
|
||||
focusNode();
|
||||
selectedMessageId = null;
|
||||
}
|
||||
|
||||
const focusNode = async () => {
|
||||
if (selectedMessageId === null) {
|
||||
await fitView({ nodes: [{ id: history.currentId }] });
|
||||
} else {
|
||||
await fitView({ nodes: [{ id: selectedMessageId }] });
|
||||
}
|
||||
|
||||
selectedMessageId = null;
|
||||
};
|
||||
|
||||
const drawFlow = async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user