diff --git a/src/api/parole/content-types/parole/lifecycles.js b/src/api/parole/content-types/parole/lifecycles.js index f9a27bb..c04e2a9 100644 --- a/src/api/parole/content-types/parole/lifecycles.js +++ b/src/api/parole/content-types/parole/lifecycles.js @@ -26,7 +26,7 @@ const isSlugExists = async existingSlug => { } const jwennAwtisEpiId = async artistesIds => { - if (!artistesIds) { + if (artistesIds.length === 0) { throw new ValidationError('Champ obligatoire. Veuillez choisir au moins un artiste.'); }