Fixed Importing JSON exports fails.

Thanks to KeptnArgo and xet7 !

Fixes #3742
This commit is contained in:
Lauri Ojansivu 2021-05-29 00:52:36 +03:00
parent 06937d0aa0
commit bd1de94312
2 changed files with 7 additions and 1 deletions

View file

@ -271,6 +271,7 @@ Cards.attachSchema(
type: Number,
decimal: true,
defaultValue: 0,
optional: true,
},
subtaskSort: {
/**

View file

@ -157,9 +157,14 @@ export class TrelloCreator {
// You must call parseActions before calling this one.
createBoardAndLabels(trelloBoard) {
let color = 'blue';
if (this.getColor(trelloBoard.prefs.background) !== undefined) {
color = this.getColor(trelloBoard.prefs.background);
}
const boardToCreate = {
archived: trelloBoard.closed,
color: this.getColor(trelloBoard.prefs.background),
color: color,
// very old boards won't have a creation activity so no creation date
createdAt: this._now(this.createdAt.board),
labels: [],