Zodiase / apps-script-gmail-contextual-labeler

Quickly add deeply nested labels through context.
1 stars 0 forks source link

Bug: Object does not have property #5

Closed Zodiase closed 3 years ago

Zodiase commented 3 years ago

image

image

image

Zodiase commented 3 years ago

Seems like this only happens when:

  1. there are no selected root labels,
  2. Some selected root labels don't have child labels.

And the root of the problem is you can't build a card with a section without widgets but the error message is certainly confusing.

Reproduction:

CardService.newCardBuilder()
  .addSection(
      CardService.newCardSection().setHeader('Section with no widgets')
  )
  .build();