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

fix(ui): dedupes custom id fields #9050

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Nov 6, 2024

Setting a custom id field within unnamed fields causes duplicative ID fields to be appear in the client config. When a top-level id field is detected in your config, Payload uses that instead of injecting its default field. But when nested within unnamed fields, such as an unnamed tab, these custom id fields were not being found, causing the default field to be duplicately rendered into tables columns, etc.

@jacobsfletch jacobsfletch marked this pull request as ready for review November 6, 2024 16:44
@jacobsfletch jacobsfletch merged commit 4b4ecb3 into beta Nov 6, 2024
57 checks passed
@jacobsfletch jacobsfletch deleted the fix/custom-id-fields branch November 6, 2024 17:19
Copy link

github-actions bot commented Nov 6, 2024

🚀 This is included in version v3.0.0-beta.126

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.

1 participant