Skip to content

Commit

Permalink
Remove duplicated useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
Onitoxan committed Aug 22, 2024
1 parent 304a946 commit 0ba3bf2
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@ const AsyncAutocompleteSelect = ({
};
}, [inputValue]);

useEffect(() => {
if (!open && isAutocompleteAPI) {
setOptions([]);
setData([]);
setIsFetch(false);
}
}, [open]);

useEffect(() => {
let active = true;
if (
Expand Down

0 comments on commit 0ba3bf2

Please sign in to comment.