Skip to content

Commit

Permalink
Update packages/@aws-cdk/aws-location-alpha/lib/geofence-collection.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Pizzini <lpizzini7@gmail.com>
  • Loading branch information
mazyu36 and lpizzinidev committed Jul 29, 2024
1 parent 38e2b6a commit 4d72eaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class GeofenceCollection extends GeofenceCollectionBase {

constructor(scope: Construct, id: string, props: GeofenceCollectionProps = {}) {

if (props.description !== undefined && !Token.isUnresolved(props.description) && props.description.length > 1000) {
if (props.description && !Token.isUnresolved(props.description) && props.description.length > 1000) {
throw new Error(`\`description\` must be between 0 and 1000 characters. Received: ${props.description.length} characters`);
}

Expand Down

0 comments on commit 4d72eaf

Please sign in to comment.