Skip to content

Fix react unique key prop error in <SiteScanNotice /> component#7448

Merged
westonruter merged 2 commits intodevelopfrom
fix/react-key-prop-error-in-admin-site-scan-notice
Feb 3, 2023
Merged

Fix react unique key prop error in <SiteScanNotice /> component#7448
westonruter merged 2 commits intodevelopfrom
fix/react-key-prop-error-in-admin-site-scan-notice

Conversation

@thelovekesh
Copy link
Copy Markdown
Collaborator

@thelovekesh thelovekesh commented Feb 3, 2023

Summary

Fix the react unique key prop error while rendering <SiteScanNotice /> in the plugin's admin screen which is usually triggered when someone activates a plugin.

Error:
image

Originally discovered in #7421 (comment) while working on #7421.

Checklist

  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@thelovekesh thelovekesh self-assigned this Feb 3, 2023
@thelovekesh thelovekesh added the javascript Pull requests that update Javascript code label Feb 3, 2023
@thelovekesh thelovekesh added this to the v2.4 milestone Feb 3, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 3, 2023

Plugin builds for 19df278 are ready 🛎️!

Co-authored-by: Weston Ruter <westonruter@google.com>
Copy link
Copy Markdown
Member

@westonruter westonruter left a comment

Choose a reason for hiding this comment

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

Thanks for proactively addressing this!

@westonruter westonruter merged commit 4da32e6 into develop Feb 3, 2023
@westonruter westonruter deleted the fix/react-key-prop-error-in-admin-site-scan-notice branch February 3, 2023 17:32
@pavanpatil1
Copy link
Copy Markdown

QA passed ✅

Cross-checked the issue, Fix is working as expected. Now the console error after plugin compatibility scanning is not visible.

Before
image

After fix

consoleerror.mp4

@westonruter westonruter added the Changelogged Whether the issue/PR has been added to release notes. label Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelogged Whether the issue/PR has been added to release notes. javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants