Browse Source

fix inscription undefined comment

tripeur 4 years ago
parent
commit
c3333caeaa
1 changed files with 1 additions and 1 deletions
  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,