Merge pull request #3810 from tchak/create-dropdown-with-default-item

Éviter les erreurs de validation a la création du champ menu déroulant
This commit is contained in:
Paul Chavard 2019-04-30 11:02:21 +02:00 committed by GitHub
commit 4f1a65cd14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@ class TypesDeChampEditor extends Component {
type_champ: 'text',
types_de_champ: [],
private: props.isAnnotation,
drop_down_list_value: '--Premier élément du menu--\n',
libelle: `${
props.isAnnotation ? 'Nouvelle annotation' : 'Nouveau champ'
} ${props.typeDeChampsTypes[0][0]}`