Skip to content

Commit

Permalink
update validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mazyu36 committed Jul 29, 2024
1 parent d7509a9 commit c65cae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-location-alpha/lib/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export class Map extends MapBase {
public readonly mapUpdateTime: string;

constructor(scope: Construct, id: string, props: MapProps) {
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 c65cae2

Please sign in to comment.