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

Eliminate unique key prop errors #439

Merged
merged 2 commits into from
Jun 15, 2022
Merged

Conversation

tuckerzp
Copy link
Contributor

@tuckerzp tuckerzp commented Jun 14, 2022

This addresses the unique key prop errors in both npm run test logs and the example viewer. For now, it does use index as a key. It was unclear what a better value for a key would be in both places, so if there is any suggestions I will happily try out other values.

This should close #425

`OSCALReplacedProseWithParameter` Label was producing a unique key prop
error when running tests and using the viewer. If `constraintsDisplay`
was null, `getParameterLabelSegment()` would return a `Fragment` without a
unique key. Rather than giving the `Fragment` a key, you can safely just
remove the `Fragment`.
@easy-dynamics-oscal-automation easy-dynamics-oscal-automation bot requested a review from a team June 14, 2022 15:47
@tuckerzp tuckerzp marked this pull request as ready for review June 14, 2022 21:08
@tuckerzp tuckerzp marked this pull request as draft June 14, 2022 21:08
@tuckerzp tuckerzp force-pushed the feature/fix-console-warnings branch from cea77d2 to b4325e6 Compare June 14, 2022 21:23
@tuckerzp tuckerzp marked this pull request as ready for review June 14, 2022 21:23
src/components/OSCALControlProse.js Outdated Show resolved Hide resolved
src/components/OSCALControlProse.js Show resolved Hide resolved
OSCALReplacedProseWithByComponentParameterValue was producing a unique
key prop error due to the TextField not including a key.
@tuckerzp tuckerzp force-pushed the feature/fix-console-warnings branch from b4325e6 to 0150240 Compare June 15, 2022 12:16
@easy-dynamics-oscal-automation easy-dynamics-oscal-automation bot requested a review from a team June 15, 2022 12:55
@Bronstrom Bronstrom merged commit 1439ef3 into develop Jun 15, 2022
@Bronstrom Bronstrom deleted the feature/fix-console-warnings branch June 15, 2022 14:33
@tuckerzp tuckerzp restored the feature/fix-console-warnings branch June 15, 2022 16:24
@tuckerzp tuckerzp deleted the feature/fix-console-warnings branch June 15, 2022 16:25
@tuckerzp tuckerzp restored the feature/fix-console-warnings branch June 16, 2022 19:10
@tuckerzp tuckerzp deleted the feature/fix-console-warnings branch June 16, 2022 19:22
@kylelaker kylelaker added the bug Something isn't working label Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subtask: Unique key prop errors
3 participants