mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 02:22:00 +08:00
feat: tagkey length check is added (#999)
This commit is contained in:
parent
bf52722689
commit
95311db543
@ -62,11 +62,11 @@ function TagsKey(props: TagsKeysProps): JSX.Element {
|
|||||||
const counter = useRef(0);
|
const counter = useRef(0);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (counter.current === 0) {
|
if (counter.current === 0 && selectedKey.length === 0) {
|
||||||
counter.current = 1;
|
counter.current = 1;
|
||||||
onSearchHandler();
|
onSearchHandler();
|
||||||
}
|
}
|
||||||
}, [onSearchHandler]);
|
}, [onSearchHandler, selectedKey.length]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AutoComplete
|
<AutoComplete
|
||||||
|
Loading…
x
Reference in New Issue
Block a user