-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Version comparison crashes in a new clean installation #10673
Comments
Please add a reproduction in order for us to be able to investigate. Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided. Why was this issue marked with the
|
Hi I'm failing to reproduce this, can you confirm for me which database are you using? |
Postgres. I tested with:
Let me know if you can reproduce with this |
Describe the Bug
Version comparison crashes in the latest version after a new clean installation. See screenshot in the reproduction steps
Link to the code that reproduces this issue
https://github.com/joanvf/payload-version-bug
Reproduction Steps
Create a clean installation with npx create-payload-app
Create a new collection with versioning and drafting enabled on a regular text field:
Import the new collection in payload.config.ts
collections: [Users, Media, Pages]
Go to admin, create a few versions and try to compare. You will see the crash both in the console and on the screen.
[11:56:51] ERROR: invalid input syntax for type integer: "NaN"
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: