Ver Fonte

fix type escaping

tripeur há 4 anos atrás
pai
commit
8a501769a7
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      src/components/EditeurCreneau.vue

+ 1 - 2
src/components/EditeurCreneau.vue

@@ -379,8 +379,7 @@ export default defineComponent({
     },
     // eslint-disable-next-line @typescript-eslint/no-explicit-any
     inputListener(event: any, field: keyof Creneau) {
-      if (field == "responsableId") {
-        console.log(event);
+      if (["responsableId", "minAttendee", "maxAttendee", "penibility"].includes(field)) {
         this.updateCreneau(field, parseInt(event.target.value));
       } else {
         this.updateCreneau(field, event.target.value);