-
Notifications
You must be signed in to change notification settings - Fork 11
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
EGRC-265: Fix Key Prop Errors #18
Conversation
@@ -46,7 +46,7 @@ export default function OSCALControlImplementation(props) { | |||
<List className={classes.OSCALControlImplementationImplReqList}> | |||
{props.controlImplementation.['implemented-requirements'].map(implementedRequirement => ( | |||
<OSCALControlImplementationImplReq implementedRequirement={implementedRequirement} | |||
components={props.components} controls={props.controls} childLevel={0} /> | |||
components={props.components} controls={props.controls} childLevel={0} key={implementedRequirement.uuid} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the Key props errors were solved except for one referring to this key. I resolved it by concatenating a string onto it like we have in previous keys to make them more specific.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kkennedy26, what were you doing to see the warning? I wasn't getting any.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rgauss I just cloned the repo, switched to the 245 branch, and did npm install, npm test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got that warning as well, and resolved it the same way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, see it now. It's actually bad test data, uuid
is required. Just committed a fix.
No description provided.