Skip to content

Conversation

wadadaaa
Copy link

This PR addresses a warning caused by missing unique key props for elements rendered in a list using the map function in the Home component. Specifically, it adds key props to the outermost elements (React.Fragment) within the map functions for chatMessages and sourceDocs.

Changes:

  • Added unique key props to React.Fragment elements in the map functions of chatMessages and sourceDocs in the Home component (pages/index.tsx).
  • Updated pnpm-lock.yaml file.

These changes resolve the warning and ensure efficient re-rendering of components when the data changes.

Please let me know if you have any questions or need further modifications. I'll be happy to address them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant