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

FieldSelect in EditMany shows invalid fields and causes runtime error when admin property not defined #10131

Open
akhrarovsaid opened this issue Dec 22, 2024 · 0 comments · May be fixed by #10132

Comments

@akhrarovsaid
Copy link
Contributor

Describe the Bug

The Field select shows fields which should not be editable by editors. This is especially noticeable while bulk editing upload-enabled collections as you are able to select fields that are otherwise hidden. While you cannot edit these aforementioned fields, they still show up in the FieldSelect component.

This also causes a runtime error on fields that have not defined an admin property in config.

Link to the code that reproduces this issue

https://github.com/akhrarovsaid/payload/tree/repro/editmany-invalid-fields-and-error

Reproduction Steps

  • Grab repro
  • pnpm dev _community
  • Upload an image to media collection
  • Edit many in list view
  • Observe invalid fields in FieldSelect
  • Navigate to users collection list view
  • Select user and edit many
  • Observe runtime error

Which area(s) are affected? (Select all that apply)

area: ui

Environment Info

Payload: 3.11.0
Next: 15.1.0
Node: 20+
@akhrarovsaid akhrarovsaid added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Dec 22, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Dec 30, 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 a pull request may close this issue.

2 participants