googleworkspace / googleworkspace/apps-script-samples

People

Open
#403 0 comments 0 reactions 1 assignee View on GitHub

@jpoehnelt is already working on this.

Since Jun 6, 2023.

Dominant language
JavaScript
Stars
5.2k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

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;
  }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.