defaultValue won't be applied for customFields #3266
Labels
P2: important
Critical issue which does not affect majority of users
type: bug 🐛
Something isn't working
Milestone
Describe the bug
When i define a
defaultValue
for a custom field of typestring
on the Product entity, it always ends up beingnull
in the database. For typeint
it always ends up being 0, despite of what i set in the config, e.g.101
.To Reproduce
Steps to reproduce the behavior:
defaultValue
) in the vendure config, for entity Productnull
null
as well.Expected behavior
Default values behave as intended.
Environment (please complete the following information):
Additional context
Reproduction: https://github.com/KilianSSL/vendure-custom-field-default-value
The text was updated successfully, but these errors were encountered: