mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user