Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unique key prop to React.Fragment in Home component #158

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

None yet

1 participant