Skip to content

Commit

Permalink
Transformations: Prevent FilterByValue transform crashing panel edit (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw committed May 26, 2021
1 parent d69c21a commit 515c73d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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);

Expand Down

0 comments on commit 515c73d

Please sign in to comment.