From c19fb3282e97f1c974f9a7cee3456f5c37a40926 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Sat, 31 Oct 2020 22:03:54 +0700 Subject: [PATCH] added search to useEffect deps --- src/components/tags/TagAutocomplete/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tags/TagAutocomplete/index.tsx b/src/components/tags/TagAutocomplete/index.tsx index cd13840f..f2948b65 100644 --- a/src/components/tags/TagAutocomplete/index.tsx +++ b/src/components/tags/TagAutocomplete/index.tsx @@ -109,7 +109,7 @@ const TagAutocompleteUnconnected: FC = ({ window.removeEventListener('resize', onScroll); window.removeEventListener('scroll', onScroll); }; - }, [options]); + }, [options, search]); return (