Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-5214

React warnings when open ConfigMap details

XMLWordPrintable

    • False
    • False
    • Undefined
    • Not Supported

      Description of problem:

      While developing the console, when open a ConfigMap details screen there are two React Warnings shown because of some key/nameKey refactoring for i18n. See attached screenshot.

      Warnings:

      Warning: Each child in a list should have a unique "key" prop.
      
      Check the top-level render call using <Switch>. See https://fb.me/react-warning-keys for more information.
          in Route
          in Unknown
          in Unknown
          in Unknown
          in Unknown (created by ConnectFunction)
          in ConnectFunction (created by Firehose)
          in Firehose (created by ConnectFunction)
          in ConnectFunction
          in Unknown (created by DetailsPage)
          in ErrorBoundary (created by DetailsPage)
          in DetailsPage (created by ConfigMapsDetailsPage)
          in ConfigMapsDetailsPage (created by AsyncComponent)\
      ...
      
      Warning: Each child in a list should have a unique "key" prop. See https://fb.me/react-warning-keys for more information.
          in li
          in Unknown (created by Context.Consumer)
          in NavBar
          in div
          in div
          in Unknown
          in Unknown
          in Unknown
          in Unknown (created by ConnectFunction)
          in ConnectFunction (created by Firehose)
          in Firehose (created by ConnectFunction)
          in ConnectFunction
          in Unknown (created by DetailsPage)
          in ErrorBoundary (created by DetailsPage)
          in DetailsPage (created by ConfigMapsDetailsPage)
          in ConfigMapsDetailsPage (created by AsyncComponent)
      ...
      

      Prerequisites (if any, like setup, operators/versions):

      Console in local development with yarn dev

      Steps to Reproduce

      1. Open OpenShift console
      2. Open your browser debug console
      3. Open a Configmap detail screen

      Actual results:

      Getting two key warning

      Expected results:

      No warning

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      4.7.0-0.ci-2020-12-06-083105

      Additional info:

              Unassigned Unassigned
              cjerolim Christoph Jerolimov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: