apps-script-samples icon indicating copy to clipboard operation
apps-script-samples copied to clipboard

People

Open shgeta opened this issue 2 years ago • 0 comments

Summary

On "apps-script-samples/people/quickstart/quickstart.gs" ,if a "person" have no "names" cause error. so I want to add this conditional expression.

if (person.names && person.names.length === 0) { console.log('No display name found for connection.'); return; }

  if (!person.names || person.names && person.names.length === 0) {
    console.log('No display name found for connection.');
    return;
  }

shgeta avatar Jun 06 '23 01:06 shgeta