oss-slu / shelter_volunteers

MIT License
3 stars 4 forks source link

client_app - each child in a list should have a unique key prop (for all the lists) #70

Closed SiriChandanaGarimella closed 7 months ago

SiriChandanaGarimella commented 8 months ago

Describe the bug When I run the client_app and navigate to the Dashboard(with shifts added), Current selection page, Upcoming shifts, Previous shifts, or Shift confirmation page, I see a warning in the console stating "Each child in a list should have a unique key prop".

To Reproduce Steps to reproduce the behavior:

  1. Run the application and sign in with developer@slu.edu and any password
  2. In your web browser, open "Developer tools"
  3. In Developer tools, open the "console" tab
  4. Navigate to a page where a list or table is displayed (Dashboard(with shifts added), Current selection page, Upcoming shifts, Previous shifts, or Shift confirmation page).
  5. You should see "Each child in a list should have a unique key prop" warning logged to the console. See screenshot below image

Expected behavior The console warning should not be displayed

Additional context A unique key has to be added to each element in the list.