File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
components/microsoft_outlook/actions/find-contacts Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ export default {
31
31
const relatedContacts = [ ] ;
32
32
for await ( const contact of contacts ) {
33
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 ) ,
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 ) ,
39
39
)
40
40
) {
41
41
relatedContacts . push ( contact ) ;
You can’t perform that action at this time.
0 commit comments