mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 22:29:01 +08:00
fix: log issue remove field in query panel (#2130)
This commit is contained in:
parent
1914c3b4a0
commit
ed4a01dea6
@ -47,6 +47,11 @@ function SearchFields({
|
||||
}
|
||||
}, [parsedQuery]);
|
||||
|
||||
const updateFieldsQuery = (updated: QueryFields[][]): void => {
|
||||
setFieldsQuery(updated);
|
||||
keyPrefixRef.current = hashCode(JSON.stringify(updated));
|
||||
};
|
||||
|
||||
const addSuggestedField = useCallback(
|
||||
(name: string): void => {
|
||||
if (!name) {
|
||||
@ -97,7 +102,7 @@ function SearchFields({
|
||||
keyPrefix={keyPrefixRef.current}
|
||||
onDropDownToggleHandler={onDropDownToggleHandler}
|
||||
fieldsQuery={fieldsQuery}
|
||||
setFieldsQuery={setFieldsQuery}
|
||||
setFieldsQuery={updateFieldsQuery}
|
||||
/>
|
||||
<SearchFieldsActionBar
|
||||
applyUpdate={applyUpdate}
|
||||
|
Loading…
x
Reference in New Issue
Block a user