Explorar el Código

fix inscription undefined comment

tripeur hace 4 años
padre
commit
c3333caeaa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/Questionaire.vue

+ 1 - 1
src/components/Questionaire.vue

@@ -184,7 +184,7 @@ export default defineComponent({
       }
       this.comment = this.questions
         .filter((q) => q.type == "text")
-        .map((q) => q.title + " : " + this.commentObject[q.uuid])
+        .map((q) => q.title + " : " + (this.commentObject[q.uuid] ?? ""))
         .join("\n\r");
       const benevole: BenevoleJSON = {
         name: this.name,