We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b1249e commit 413b20bCopy full SHA for 413b20b
components/microsoft_outlook/actions/find-contacts/find-contacts.mjs
@@ -31,11 +31,11 @@ export default {
31
const relatedContacts = [];
32
for await (const contact of contacts) {
33
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),
+ contact?.displayName?.includes(this.searchString) ||
+ contact?.givenName?.includes(this.searchString) ||
+ contact?.surname?.includes(this.searchString) ||
+ contact?.emailAddresses?.find(
+ (e) => e?.address == this.searchString || e?.name?.includes(this.searchString),
39
)
40
) {
41
relatedContacts.push(contact);
0 commit comments