refac
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user