|
|
@@ -313,6 +313,13 @@ export default defineComponent({
|
|
|
const slots = this.$store.state.creneauList.filter((o) => !o.isMeal);
|
|
|
const timeslots = slots.map((o) => o.toTimeslotRaw());
|
|
|
const mealSlots = meals.map((o) => o.toMealSlot());
|
|
|
+ if (mealSlots.length == 0) {
|
|
|
+ toast({
|
|
|
+ html: "Vous devez avoir au moins 1 creneau bouffe dans votre planning.",
|
|
|
+ classes: "error",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
const volonteerList = this.$store.state.benevoleList
|
|
|
.filter((b) => !b.isFixed)
|
|
|
.map((b) => b.toVolonteeRaw());
|