From c6cad13f1e86fea44c7c16e1a194c6d7164e824a Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 29 Jun 2023 00:22:25 +0300 Subject: [PATCH] Set background color only if it exists. Part 2. 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 c86e95399..3fa4ef515 100644 --- a/client/lib/utils.js +++ b/client/lib/utils.js @@ -10,10 +10,10 @@ Utils = { } } */ - if (currentBoard.backgroundImageURL) { + if (currentBoard.backgroundImageURL !== undefined) { $(".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 if (currentBoard.background-color) { + } else if (currentBoard.background-color !== undefined) { $(".board-wrapper,.board-wrapper .board-canvas").css({"background": currentBoard.background-color}); } },