From 1d70055dd331e259d151ad89bd0eb5061e136103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Walczak?= Date: Fri, 8 Sep 2023 15:24:07 +0200 Subject: [PATCH] fix: export doesn't handle lists with no cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MichaƂ Walczak --- src/services/BoardApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/BoardApi.js b/src/services/BoardApi.js index f63787dd3..46c383421 100644 --- a/src/services/BoardApi.js +++ b/src/services/BoardApi.js @@ -163,7 +163,7 @@ export class BoardApi { let CSV = row + '\r\n' response.data.stacks.forEach(stack => { - stack.cards.forEach(card => { + stack?.cards?.forEach(card => { row = '' Object.keys(fields).forEach(field => { if (field === 'createdAt' || field === 'lastModified') {