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

minor fix - fixed forwardRef and unique key console errors #7337

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

ehconitin
Copy link
Contributor

context - #7183

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This pull request addresses two console errors in the React components, improving code quality and adherence to best practices without altering core functionality.

  • Moved 'key' prop from ObjectFilterDropdownFilterSelectMenuItem to parent SelectableItem in packages/twenty-front/src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx for better list rendering
  • Enhanced DropdownMenuSearchInput in packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenuSearchInput.tsx to correctly handle forwarded refs, resolving forwardRef usage error
  • Both changes address specific console errors mentioned in issue fix(front): fix some console errors #7183, improving overall code quality

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@thomtrp thomtrp merged commit c505a8e into twentyhq:main Oct 1, 2024
5 of 11 checks passed
Copy link

github-actions bot commented Oct 1, 2024

Thanks @ehconitin for your contribution!
This marks your 39th PR on the repo. You're top 1% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

@ehconitin ehconitin deleted the forwardRefConsoleErrors branch October 10, 2024 10:48
harshit078 pushed a commit to harshit078/twenty that referenced this pull request Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants