mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 21:35:19 +00:00
refac
This commit is contained in:
parent
04251b7bff
commit
48cd72fab0
1 changed files with 4 additions and 2 deletions
|
|
@ -332,14 +332,16 @@
|
||||||
|
|
||||||
let isExpandedUpdateTimeout;
|
let isExpandedUpdateTimeout;
|
||||||
|
|
||||||
const isExpandedUpdateDebounceHandler = (open) => {
|
const isExpandedUpdateDebounceHandler = () => {
|
||||||
clearTimeout(isExpandedUpdateTimeout);
|
clearTimeout(isExpandedUpdateTimeout);
|
||||||
isExpandedUpdateTimeout = setTimeout(() => {
|
isExpandedUpdateTimeout = setTimeout(() => {
|
||||||
isExpandedUpdateHandler();
|
isExpandedUpdateHandler();
|
||||||
}, 500);
|
}, 500);
|
||||||
};
|
};
|
||||||
|
|
||||||
$: isExpandedUpdateDebounceHandler(open);
|
$: if (open) {
|
||||||
|
isExpandedUpdateDebounceHandler();
|
||||||
|
}
|
||||||
|
|
||||||
const renameHandler = async () => {
|
const renameHandler = async () => {
|
||||||
console.log('Edit');
|
console.log('Edit');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue