diff --git a/app/javascript/components/TypesDeChampEditor/components/TypeDeChamps.js b/app/javascript/components/TypesDeChampEditor/components/TypeDeChamps.js index 13ba32302..104ca2fa2 100644 --- a/app/javascript/components/TypesDeChampEditor/components/TypeDeChamps.js +++ b/app/javascript/components/TypesDeChampEditor/components/TypeDeChamps.js @@ -12,13 +12,6 @@ function TypeDeChamps({ state: rootState, typeDeChamps }) { typeDeChamps }); - if (state.typeDeChamps.length === 0) { - dispatch({ - type: 'addFirstTypeDeChamp', - done: () => dispatch({ type: 'refresh' }) - }); - } - return (
))} + {state.typeDeChamps.length === 0 && ( +

+ +   Cliquez sur le bouton « Ajouter un champ » pour + créer votre premier champ. +

+ )}