From 45d33fa2e459717064969a1729e016d4004e5435 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 29 Jun 2023 00:03:00 +0300 Subject: [PATCH] Set background color only if it exists. Thanks to xet7 ! --- 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 e77f33d01..c86e95399 100644 --- a/client/lib/utils.js +++ b/client/lib/utils.js @@ -13,8 +13,8 @@ Utils = { if (currentBoard.backgroundImageURL) { $(".board-wrapper,.board-wrapper .board-canvas").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 { - $(".board-wrapper,.board-wrapper .board-canvas").css({"background": currentBoard.background-color}); + } else if (currentBoard.background-color) { + $(".board-wrapper,.board-wrapper .board-canvas").css({"background": currentBoard.background-color}); } }, /** returns the current board id