fix library filter crash (#7376)

This commit is contained in:
jessopb 2021-12-30 15:35:35 -05:00 committed by GitHub
parent 0600646479
commit 2549f5b0ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ export function filterClaims(claims: Array<Claim>, query: ?string): Array<Claim>
return (
(value.title && value.title.match(queryMatchRegExp)) ||
(claim.signing_channel && claim.signing_channel.name.match(queryMatchRegExp)) ||
(claim.signing_channel && claim.signing_channel.name && claim.signing_channel.name.match(queryMatchRegExp)) ||
(claim.name && claim.name.match(queryMatchRegExp))
);
});