Fix seeds (#7543)
- 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:
@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user