payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
23.58k stars 1.5k forks source link

FieldLabel has incorrect props #8366

Closed r1tsuu closed 5 days ago

r1tsuu commented 1 week ago

Link to reproduction

No response

Environment Info

Payload: 108
Next: 160

Describe the Bug

This is what FieldLabel wants to be passed:

image

Many props are required and field itself is required as well. This is with strict: true in tsconfig. Can we reconsider to make field optional as well?

Reproduction Steps

Try to render FieldLabel with strict: true - see the errors pop up

Adapters and Plugins

No response

r1tsuu commented 5 days ago

Fixed in https://github.com/payloadcms/payload/pull/8409

github-actions[bot] commented 4 days ago

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

github-actions[bot] commented 3 days ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.