Skip to content

Commit 413b20b

Browse files
committed
update
1 parent 5b1249e commit 413b20b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/microsoft_outlook/actions/find-contacts/find-contacts.mjs

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ export default {
3131
const relatedContacts = [];
3232
for await (const contact of contacts) {
3333
if (
34-
contact.displayName.includes(this.searchString) ||
35-
contact.givenName.includes(this.searchString) ||
36-
contact.surname.includes(this.searchString) ||
37-
contact.emailAddresses.find(
38-
(e) => e.address == this.searchString || e.name.includes(this.searchString),
34+
contact?.displayName?.includes(this.searchString) ||
35+
contact?.givenName?.includes(this.searchString) ||
36+
contact?.surname?.includes(this.searchString) ||
37+
contact?.emailAddresses?.find(
38+
(e) => e?.address == this.searchString || e?.name?.includes(this.searchString),
3939
)
4040
) {
4141
relatedContacts.push(contact);

0 commit comments

Comments
 (0)