integr8ly / tutorial-web-app

Solution Explorer provides the front door into the Integreatly initiative. It hosts the various Solution Patterns, as well as providing a dashboard of installed applications/products/services.
Apache License 2.0
36 stars 54 forks source link

Fixes missing key console error #548

Closed mfrances17 closed 4 years ago

mfrances17 commented 4 years ago

Motivation

Console errors starting appearing after accessibility changes, a list item without a specific key was added to a couple arrays:

Warning: Each child in an array or iterator should have a unique "key" prop.
Check the render method of `InstalledAppsView`. See https://fb.me/react-warning-keys for more information.
    in li (at InstalledAppsView.js:134)
    in InstalledAppsView (at landingPage.js:106)
.
.
.

What

Added a key for the openshift li and a unique key for the other services based on server name.

Verification Steps

  1. Go to the default dashboard page of the Solution Explorer and open the console window.
  2. Verify that the specific error noted above no longer appears.

Checklist:

Progress