1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01:00

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

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;
}