From e02b7c0c8e8666ca0bb97af63073805bbfbf4910 Mon Sep 17 00:00:00 2001 From: Vishal Sharma Date: Fri, 8 Nov 2024 18:27:01 +0530 Subject: [PATCH] Fix Optional Actions doesn't work (#224) Co-authored-by: Vishal --- src/components/FlowContainer/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/FlowContainer/index.ts b/src/components/FlowContainer/index.ts index eab9adf..5807558 100644 --- a/src/components/FlowContainer/index.ts +++ b/src/components/FlowContainer/index.ts @@ -268,7 +268,9 @@ class FlowContainer extends BridgeBase { this.caseMessages = this.thePConn.getValue('caseMessages'); this.caseMessages = this.localizedVal(this.thePConn.getValue('caseMessages'), this.localeCategory); - if (this.caseMessages || !this.hasAssignments()) { + // caseMessages's behavior has changed in 24.2, and hence it doesn't let Optional Action work. + // Changing the below condition for now. Was: (theCaseMessages || !hasAssignments()) + if (!this.hasAssignments()) { this.bHasCaseMessages = true; // Temp fix for 8.7 change: confirmationNote no longer coming through in caseMessages$.