From 3c477e9783c4e9adc265cfadef4c37ddcf5a9fdb Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Mon, 5 Jun 2023 12:22:33 +0200 Subject: [PATCH] Bugfix, variable "color" didn't exist - background-color is maybe wrong too, but better than throwing an exception --- client/lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/lib/utils.js b/client/lib/utils.js index 07a334d0e..d204b3a0b 100644 --- a/client/lib/utils.js +++ b/client/lib/utils.js @@ -6,8 +6,8 @@ Utils = { if (currentBoard.backgroundImageURL !== undefined) { $(".board-wrapper").css({"background":"url(" + currentBoard.backgroundImageURL + ")","background-size":"cover"}); $(".swimlane,.swimlane .list,.swimlane .list .list-body,.swimlane .list:first-child .list-body").css({"background-color":"transparent"}); - } else if (currentBoard.color !== undefined) { - currentBoard.setColor(currentBoard.color); + } else if (currentBoard["background-color"]) { + currentBoard.setColor(currentBoard["background-color"]); } }, /** returns the current board id