Browse Source

Fix Card export CSV, check for vote undefined.

Thanks to xet7 !
Lauri Ojansivu 5 năm trước cách đây
mục cha
commit
8eafa1ac66
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      models/exporter.js

+ 1 - 1
models/exporter.js

@@ -322,7 +322,7 @@ export class Exporter {
       currentRow.push(
         card.dateLastActivity ? moment(card.dateLastActivity).format() : ' ',
       );
-      if (card.vote.question) {
+      if (card.vote.question !== undefined) {
         let positiveVoters = '';
         let negativeVoters = '';
         card.vote.positive.forEach(userId => {