Reactivate Select in emptyValue generation

This commit is contained in:
Charles Bochet 2024-01-09 15:12:59 +01:00
parent 47ac97dd25
commit 8d2758ee5e

View File

@ -41,6 +41,9 @@ export const generateEmptyFieldValue = (
case FieldMetadataType.Relation: { case FieldMetadataType.Relation: {
return null; return null;
} }
case FieldMetadataType.Select: {
return null;
}
case FieldMetadataType.Currency: { case FieldMetadataType.Currency: {
return { return {
amountMicros: null, amountMicros: null,
@ -49,8 +52,7 @@ export const generateEmptyFieldValue = (
}; };
} }
case FieldMetadataType.MultiSelect: case FieldMetadataType.MultiSelect: {
case FieldMetadataType.Select: {
throw new Error('Not implemented yet'); throw new Error('Not implemented yet');
} }
} }