#Empty Select field options crashes list page

5 messages · Page 1 of 1 (latest)

astral tartan
#

I've added a select field that is dynamically populated, which has to be done in a custom component. So the select options is an empty array.

This instantly crashes the collections list page because, I'm assuming, something is trying to read the options. disableListFilter does not help.

Is there a better way around this than adding an unused option?

deep remnantBOT
astral tartan
#

disableListColumn was actually the fix I needed.

manic owl
#

This issue seems to be the same I had before. I created a PR to fix that here: https://github.com/payloadcms/payload/pull/16293.

If that's the same issue and that's important for you, you can create a patch to have the update I pused in your environment instead of waiting for the PR to be merged into Payload core.

Let me know if that's the same issue @astral tartan