Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

People #403

Open
shgeta opened this issue Jun 6, 2023 · 0 comments
Open

People #403

shgeta opened this issue Jun 6, 2023 · 0 comments
Assignees

Comments

@shgeta
Copy link

shgeta commented Jun 6, 2023

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;
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@shgeta @jpoehnelt and others