Skip to content

Commit

Permalink
fix: value maybe null (#1873)
Browse files Browse the repository at this point in the history
  • Loading branch information
qxo committed Dec 17, 2021
1 parent 47ac0b9 commit 135ee53
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -56,7 +56,7 @@ import pickBy from 'lodash/pickBy';
import {VIEW_GROUP} from '../../index';
const filterProperty = (needle) => (value, name) => {
return name.toString().toLowerCase().includes(needle) || value.toString().toLowerCase().includes(needle);
return name.toString().toLowerCase().includes(needle) || (value && value.toString().toLowerCase().includes(needle));
};
const filterProperties = (needle, properties) => pickBy(properties, filterProperty(needle));
const filterConfigurationProperties = (needle) => (propertySource) => {
Expand Down

0 comments on commit 135ee53

Please sign in to comment.