Skip to content

Commit

Permalink
fix(native-filters): add handle undefined control value gracefully (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored Aug 27, 2021
1 parent 8adc31d commit 147637a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const checkIsMissingRequiredValue = (
const value = filterState?.value;
// TODO: this property should be unhardcoded
return (
filter.controlValues.enableEmptyFilter &&
filter.controlValues?.enableEmptyFilter &&
(value === null || value === undefined)
);
};
Expand Down

0 comments on commit 147637a

Please sign in to comment.