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

Title shows NaN if id is empty and type is text #9080

Closed
nathanclevenger opened this issue Nov 8, 2024 · 2 comments · Fixed by #9091
Closed

Title shows NaN if id is empty and type is text #9080

nathanclevenger opened this issue Nov 8, 2024 · 2 comments · Fixed by #9091

Comments

@nathanclevenger
Copy link
Contributor

Describe the Bug

When a Collection has an id of type text like with: { name: 'id', type: 'text', required: true }, then NaN is displayed in the title when the id field is empty.

Image

I would assume the default should be [Untitled] like in a normal collection

Link to the code that reproduces this issue

https://github.com/nathanclevenger/payload-repro/blob/main/collections/Resources.ts

Reproduction Steps

Go to the Resources collection and create New

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

area: ui

Environment Info

Payload: 3.0.0-beta.126
Node: v20.13.1
Next: 15.0.0

Copy link

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

Copy link

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants