Skip to content

Commit

Permalink
Wrong typescript boolean logic which meant there was no event rule
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiswl committed Nov 8, 2024
1 parent 518c705 commit f996917
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class WfmWorkflowStateChangeNfBatchReadyEventHandlerConstruct extends Con
props.eventBusObj.grantPutEventsTo(this.stateMachineObj);

// Create a rule for this state machine if the addRule flag is set to true or null
if (props.addRule === true || (props.addRule === null && this.globals.defaultAddRule)) {
if (props.addRule === true || (props.addRule === undefined && this.globals.defaultAddRule)) {
this.addRule(props);
}

Expand Down

0 comments on commit f996917

Please sign in to comment.