You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It shows up in the Admin UI but when creating a new product and not filling in this specific custom field the Admin UI does send it with value 0
On the edit product screen the value 0 is indeed shown while actually it should just be empty.
Expected behavior
If an optional custom field of type int is not filled in null should be sent to server
Environment (please complete the following information):
@vendure/core version: 2.0.3
Nodejs version: v16.19.0
Database (mysql/postgres etc): postgres
The text was updated successfully, but these errors were encountered:
Describe the bug
Optional custom fields of type int get populated with 0 instead of null
To Reproduce
Steps to reproduce the behavior:
It shows up in the Admin UI but when creating a new product and not filling in this specific custom field the Admin UI does send it with value 0
On the edit product screen the value 0 is indeed shown while actually it should just be empty.
Expected behavior
If an optional custom field of type int is not filled in null should be sent to server
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: