mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
refac
This commit is contained in:
parent
c8f44b73f1
commit
ed8c0b23a0
1 changed files with 1 additions and 2 deletions
|
|
@ -34,7 +34,6 @@
|
||||||
let debounceTimer;
|
let debounceTimer;
|
||||||
|
|
||||||
const debounceSubmitHandler = async () => {
|
const debounceSubmitHandler = async () => {
|
||||||
// debounce 1 second
|
|
||||||
if (debounceTimer) {
|
if (debounceTimer) {
|
||||||
clearTimeout(debounceTimer);
|
clearTimeout(debounceTimer);
|
||||||
}
|
}
|
||||||
|
|
@ -42,7 +41,7 @@
|
||||||
// Set a new timer
|
// Set a new timer
|
||||||
debounceTimer = setTimeout(() => {
|
debounceTimer = setTimeout(() => {
|
||||||
submitHandler();
|
submitHandler();
|
||||||
}, 1000); // 1 second debounce
|
}, 500); // 0.5 second debounce
|
||||||
};
|
};
|
||||||
|
|
||||||
const getUserValves = async () => {
|
const getUserValves = async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue