Переглянути джерело

fix inscription undefined comment

tripeur 4 роки тому
батько
коміт
c3333caeaa
1 змінених файлів з 1 додано та 1 видалено
  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,