Alessandro100 / concordia-campus-guide

React project that allows navigation of concordia campuses
GNU General Public License v3.0
1 stars 0 forks source link

Unique Key Warning for PoylgonsAndMarkers #137

Open wltrf opened 4 years ago

wltrf commented 4 years ago

Describe the bug When running the application, there are a lot of warnings about undefined keys

To Reproduce Steps to reproduce the behavior:

  1. Run npm start.
  2. Emulate on Android.
  3. Warnings appear.

Expected behavior There shouldn't be any warnings as it clutters the console output.

Screenshots If applicable, add screenshots to help explain your problem. Warning: Encountered two children with the same key, %s. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.%s, undefined-undefined, in RCTView (at PolygonsAndMarkers.tsx:71) in PolygonsAndMarkers (at App.tsx:88) ...

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.