Skip to content

fix: add key prop to mapped meeting dropdown options - #578

Open
Aditya-132 wants to merge 1 commit into
containers:mainfrom
Aditya-132:fix/dropdown-missing-key
Open

fix: add key prop to mapped meeting dropdown options#578
Aditya-132 wants to merge 1 commit into
containers:mainfrom
Aditya-132:fix/dropdown-missing-key

Conversation

@Aditya-132

Copy link
Copy Markdown

What this PR does

getDropdownOption in CommunityMeetingsCardGrid rendered a list of DropDownOption elements from .map() without a key, which triggers React's "Each child in a list should have a unique key prop" warning and makes reconciliation fall back to index matching. Adds a key to each mapped element.

Fixes #575

Testing

yarn build succeeds and generates build/index.html (matching CI).

getDropdownOption rendered DropDownOption elements from .map() without a
key, producing React's missing-key warning and forcing index-based
reconciliation for the meeting dropdown list. Add a key to each element.

Signed-off-by: Aditya-132 <adityachincholkar11@gmail.com>
@Aditya-132
Aditya-132 force-pushed the fix/dropdown-missing-key branch from ccf2bc4 to 7ade60a Compare July 29, 2026 07:37
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.

Missing React key prop when rendering meeting dropdown options

1 participant