Fix prevent error when no artiste
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user