2
0
Эх сурвалжийг харах

Fix Card export CSV, check for vote undefined.

Thanks to xet7 !
Lauri Ojansivu 5 жил өмнө
parent
commit
8eafa1ac66
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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 => {