Skip to content

Commit

Permalink
Update PDFAcroCheckBox.ts
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
MockingMagician authored Oct 2, 2024
1 parent e4e7f7d commit 4fec9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/acroform/PDFAcroCheckBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PDFAcroCheckBox extends PDFAcroButton {
}

getOnValue(): PDFName[] {
return this.getWidgets().map((widget) => widget.getOnValue());
return (this.getWidgets() ?? []).map((widget) => widget.getOnValue());
}
}

Expand Down

0 comments on commit 4fec9d4

Please sign in to comment.