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 {
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 ) ;
You can’t perform that action at this time.
0 commit comments