mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-11 03:38:02 +00:00
refac
This commit is contained in:
parent
fe772d95e2
commit
068e52f877
1 changed files with 3 additions and 3 deletions
|
|
@ -936,11 +936,11 @@
|
|||
|
||||
const onHistoryChange = (history) => {
|
||||
if (history) {
|
||||
cancelAnimationFrame(contentsRAF);
|
||||
contentsRAF = requestAnimationFrame(() => {
|
||||
clearTimeout(contentsRAF);
|
||||
contentsRAF = setTimeout(() => {
|
||||
getContents();
|
||||
contentsRAF = null;
|
||||
});
|
||||
}, 0);
|
||||
} else {
|
||||
artifactContents.set([]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue