浏览代码

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,