Kusuma04-dev commented on code in PR #2943:
URL:
https://github.com/apache/incubator-kie-tools/pull/2943#discussion_r1980877375
##########
packages/online-editor/src/dmnRunner/DmnRunnerContextProvider.tsx:
##########
@@ -341,18 +351,11 @@ export function DmnRunnerContextProvider(props:
PropsWithChildren<Props>) {
new Map<string, string>()
);
- const messagesBySourceId =
- results[currentInputIndex]?.reduce((acc, decisionResult) => {
- decisionResult.messages?.forEach((message) => {
- const messageEntry = acc.get(message.sourceId);
- if (!messageEntry) {
- acc.set(message.sourceId, [message]);
- } else {
- acc.set(message.sourceId, [...messageEntry, message]);
- }
- });
- return acc;
- }, new Map<string, DmnEvaluationMessages[]>()) ?? new Map<string,
DmnEvaluationMessages[]>();
+ const messagesBySourceId =
Array.from(currentResponseMessage.values()).reduce((acc, message) => {
Review Comment:
Thanks for pointing out @ljmotta , Now i have set only messages to
currentresponsemessages and then handling them based on sourceid as before.
--
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]