diff --git a/src/views/project/Project_mapping.vue b/src/views/project/Project_mapping.vue index 976ea82b8e7dae7fc63dfb9625817e5b9e886a73..89425133ca4e406a007f3c80c5f057849c5edf03 100644 --- a/src/views/project/Project_mapping.vue +++ b/src/views/project/Project_mapping.vue @@ -86,9 +86,13 @@ export default { checkTitles() { let isValid = true; this.basemaps.forEach((basemap) => { + console.log(basemap); if (basemap.title === null || basemap.title === "") { basemap.errors = "Veuillez compléter ce champ."; isValid = false; + } else if (basemap.layers.length === 0) { + basemap.errors = "Veuillez ajouter au moins un layer."; + isValid = false; } else { basemap.errors = ""; }