payload icon indicating copy to clipboard operation
payload copied to clipboard

Cannot null / empty a number field

Open joedawson opened this issue 6 months ago • 0 comments

Link to reproduction

No response

Payload Version

3.0.0-beta.87

Node Version

22.4

Next.js Version

15.0.0-canary.104

Describe the Bug

When adding a number field to a collection or global, and it is also not required (optional), its value cannot be emptied / nulled.

Reproduction Steps

  1. Add a number field to a collection (ensuring required is false
  2. Add a value and save
  3. Attempt to delete the value and save, it will save it with its value before attempting to delete

Adapters and Plugins

db-postgres

joedawson avatar Aug 20 '24 20:08 joedawson