mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 14:25:19 +00:00
refac
This commit is contained in:
parent
2de11f8daf
commit
c07086401e
3 changed files with 12 additions and 0 deletions
|
|
@ -43,6 +43,10 @@
|
||||||
let searchDebounceTimeout;
|
let searchDebounceTimeout;
|
||||||
|
|
||||||
const searchHandler = async () => {
|
const searchHandler = async () => {
|
||||||
|
if (!show) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (searchDebounceTimeout) {
|
if (searchDebounceTimeout) {
|
||||||
clearTimeout(searchDebounceTimeout);
|
clearTimeout(searchDebounceTimeout);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const searchHandler = async () => {
|
const searchHandler = async () => {
|
||||||
|
if (!show) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (searchDebounceTimeout) {
|
if (searchDebounceTimeout) {
|
||||||
clearTimeout(searchDebounceTimeout);
|
clearTimeout(searchDebounceTimeout);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const searchHandler = async () => {
|
const searchHandler = async () => {
|
||||||
|
if (!show) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (searchDebounceTimeout) {
|
if (searchDebounceTimeout) {
|
||||||
clearTimeout(searchDebounceTimeout);
|
clearTimeout(searchDebounceTimeout);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue