Kusuma04-dev commented on code in PR #2912:
URL:
https://github.com/apache/incubator-kie-tools/pull/2912#discussion_r1988598509
##########
packages/boxed-expression-component/src/expressions/ExpressionDefinitionRoot/ExpressionDefinitionLogicTypeSelector.tsx:
##########
@@ -147,7 +148,14 @@ export function ExpressionDefinitionLogicTypeSelector({
case "context":
return <ContextExpression expression={expression} isNested={isNested}
parentElementId={parentElementId} />;
case "decisionTable":
- return <DecisionTableExpression expression={expression}
isNested={isNested} />;
+ const newExpression =
+ !expression?.rule || expression?.rule?.length === 0
+ ? {
+ ...expression,
+ rule: [createDefaultRule()],
+ }
+ : expression;
Review Comment:
Yeah @tiagobento @ljmotta , Previously i thought as we are not adding rule
to the xml and we are taking the expression from the xml, it is causing an
issue . But now i found the exact issue and changed it accordingly.Thank you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]