Kusuma04-dev commented on code in PR #2943:
URL:
https://github.com/apache/incubator-kie-tools/pull/2943#discussion_r1981101482
##########
packages/online-editor/src/dmnRunner/DmnRunnerContextProvider.tsx:
##########
@@ -262,6 +263,13 @@ export function DmnRunnerContextProvider(props:
PropsWithChildren<Props>) {
if (canceled.get()) {
return;
}
+ const currentResults = results[currentInputIndex];
+ if (currentResults && currentResults.messages?.length > 0) {
+ const messagesMap = new
Map(currentResults.messages.map((message) => [message.sourceId, message]));
+ setCurrentResponseMessage(messagesMap);
+ } else {
+ setCurrentResponseMessage(new Map());
+ }
Review Comment:
if we use currentInputIndex , then we won't get all the messages in case of
dmn runner table having 2 rows Luiz. Considering we have to display all
validation messages for all the rows , did the changes . Please review .Thanks
@ljmotta .
--
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]