Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/exui 2744 #1857

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Fix/exui 2744 #1857

wants to merge 7 commits into from

Conversation

Josh-HMCTS
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/EXUI-2744

Change description

Handle collections that consist of dynamic multi select lists in the collection's complex type

Copy link
Collaborator

@RiteshHMCTS RiteshHMCTS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Josh-HMCTS can you check the 3 sonar issues

Copy link
Collaborator

@RiteshHMCTS RiteshHMCTS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Josh-HMCTS I have added couple of review comments

}
}
} else {
if (caseField.data[fieldId] !== data[field].formatted_value){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Josh-HMCTS can the above if condition can be added in the else block above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to be else if, not nested if on its own

formattedValue[key] = dataValue;
} else if (formattedValue[key] !== dataValue) {
formattedValue[key] = dataValue;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Josh-HMCTS can above check can be clubbed in if block?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to use one if statement with ||

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants