- Fixing seeds after introducing the requirement for non-nullable fields
to have a default value (https://github.com/twentyhq/twenty/pull/7522).
- Empty string needs to be considered a valid default value
This commit is contained in:
Marie
2024-10-09 17:03:28 +02:00
committed by GitHub
parent 10fa6e1a6f
commit b80fa9cf13
2 changed files with 10 additions and 1 deletions

View File

@ -15,6 +15,7 @@ export const getDevSeedCompanyCustomFields = (
icon: 'IconAdCircle',
isActive: true,
isNullable: false,
defaultValue: "''",
objectMetadataId,
},
{
@ -99,6 +100,13 @@ export const getDevSeedPeopleCustomFields = (
icon: 'IconBrandWhatsapp',
isActive: true,
isNullable: false,
defaultValue: [
{
primaryPhoneNumber: '',
primaryPhoneCountryCode: '',
additionalPhones: {},
},
],
objectMetadataId,
},
{