Skip to content
Snippets Groups Projects
Commit 4a747b90 authored by Léo Banno-Cloutier's avatar Léo Banno-Cloutier
Browse files

jams-react-client: fix default color when enabling background

At the moment, when you enable a custom background for a blueprint, it
generates an invalid JSON where the color is undefined

Change-Id: I5a45b1b55fa12b5803326370627fa74cf96fd9aa
parent 9a3c6eb6
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ const updateUiCustomization = (data) => {
ui.backgroundColorOrUrl = backgroundUrl;
} else if (backgroundColor !== "") {
ui.backgroundType = "color";
ui.backgroundColorOrUrl = backgroundColor;
ui.backgroundColorOrUrl = backgroundColor || "#ffffff";
} else {
ui.backgroundType = "default";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment