PS-1267 Null check URI values (#3315)

This commit is contained in:
Matt Gibson 2022-08-16 05:59:28 -06:00 committed by GitHub
parent ce4fd26e0d
commit 9d0dd613fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ export class SearchService implements SearchServiceAbstraction {
if (
c.login &&
c.login.hasUris &&
c.login.uris.some((loginUri) => loginUri.uri.toLowerCase().indexOf(query) > -1)
c.login.uris.some((loginUri) => loginUri?.uri?.toLowerCase().indexOf(query) > -1)
) {
return true;
}