mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 00:06:58 -06:00
Transformations: Prevent FilterByValue transform crashing panel edit (#34747)
This commit is contained in:
parent
d69c21acb6
commit
515c73d8e6
@ -21,7 +21,7 @@ export const FilterByValueFilterEditor: React.FC<Props> = (props) => {
|
||||
const { fieldsAsOptions, fieldByDisplayName } = fieldsInfo;
|
||||
const fieldName = getFieldName(filter, fieldsAsOptions) ?? '';
|
||||
const field = fieldByDisplayName[fieldName];
|
||||
const matcherOptions = getMatcherOptions(field);
|
||||
const matcherOptions = field ? getMatcherOptions(field) : [];
|
||||
const matcherId = getSelectedMatcherId(filter, matcherOptions);
|
||||
const editor = valueMatchersUI.getIfExists(matcherId);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user