feat: tagkey length check is added (#999)

This commit is contained in:
palash-signoz 2022-04-22 19:45:14 +05:30 committed by GitHub
parent bf52722689
commit 95311db543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,11 +62,11 @@ function TagsKey(props: TagsKeysProps): JSX.Element {
const counter = useRef(0);
useEffect(() => {
if (counter.current === 0) {
if (counter.current === 0 && selectedKey.length === 0) {
counter.current = 1;
onSearchHandler();
}
}, [onSearchHandler]);
}, [onSearchHandler, selectedKey.length]);
return (
<AutoComplete