diff --git a/public/app/core/components/TransformersUI/FilterByValueTransformer/FilterByValueFilterEditor.tsx b/public/app/core/components/TransformersUI/FilterByValueTransformer/FilterByValueFilterEditor.tsx index a3b7a9db993..efdc3118054 100644 --- a/public/app/core/components/TransformersUI/FilterByValueTransformer/FilterByValueFilterEditor.tsx +++ b/public/app/core/components/TransformersUI/FilterByValueTransformer/FilterByValueFilterEditor.tsx @@ -21,7 +21,7 @@ export const FilterByValueFilterEditor: React.FC = (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);