Skip to content

Commit

Permalink
fix(fota): use isPresent instead of isNull
Browse files Browse the repository at this point in the history
isNull() fails if property does not exist
  • Loading branch information
coderbyheart committed Sep 23, 2024
1 parent c2adfa6 commit dc80605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdk/resources/FOTA/MultiBundleFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class MultiBundleFOTAFlow extends Construct {
.next(
new Choice(this, 'Application or MFM updated?')
.when(
Condition.isNotNull(
Condition.isPresent(
`$.updatedDeviceFirmwareDetails.appVersion`,
),
new Pass(this, 'updateReportedAppVersion', {
Expand Down

0 comments on commit dc80605

Please sign in to comment.