Fix Card export CSV, check for vote undefined.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2020-05-25 22:59:52 +03:00
parent 858bb35612
commit 8eafa1ac66

View file

@ -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 => {