Fix prevent error when no artiste

This commit is contained in:
2023-03-05 12:58:16 +04:00
parent 9d4eefa33b
commit 23d25364d4
@@ -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.');
}