From 8012f5319c1c100d7854b2f473b4854013c28791 Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Mon, 20 Feb 2023 11:24:17 +0100 Subject: [PATCH] fix: Fix import from Trello Closes #397 --- server/api/helpers/boards/import-from-trello.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/api/helpers/boards/import-from-trello.js b/server/api/helpers/boards/import-from-trello.js index 7dcbd2e5..f0363706 100644 --- a/server/api/helpers/boards/import-from-trello.js +++ b/server/api/helpers/boards/import-from-trello.js @@ -120,9 +120,10 @@ module.exports = { const importLabels = async () => { return Promise.all( - getUsedTrelloLabels().map(async (trelloLabel) => { + getUsedTrelloLabels().map(async (trelloLabel, index) => { const plankaLabel = await Label.create({ boardId: inputs.board.id, + position: 65535 * (index + 1), // TODO: move to config name: trelloLabel.name || null, color: getPlankaLabelColor(trelloLabel.color), }).fetch();