mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 03:05:56 +08:00
fix: resolves issue related ops not flowing from search box to panel (#1918)
This commit is contained in:
parent
6f6499c267
commit
4b13b0a8a4
@ -36,7 +36,14 @@ function SearchFields({
|
||||
const keyPrefixRef = useRef(hashCode(JSON.stringify(fieldsQuery)));
|
||||
|
||||
useEffect(() => {
|
||||
setFieldsQuery(createParsedQueryStructure([...parsedQuery] as never[]));
|
||||
const updatedFieldsQuery = createParsedQueryStructure([
|
||||
...parsedQuery,
|
||||
] as never[]);
|
||||
setFieldsQuery(updatedFieldsQuery);
|
||||
const incomingHashCode = hashCode(JSON.stringify(updatedFieldsQuery));
|
||||
if (incomingHashCode !== keyPrefixRef.current) {
|
||||
keyPrefixRef.current = incomingHashCode;
|
||||
}
|
||||
}, [parsedQuery]);
|
||||
|
||||
const addSuggestedField = useCallback(
|
||||
|
Loading…
x
Reference in New Issue
Block a user