Fix setting colors via webconfig

Fixes #8419.
This commit is contained in:
Fabian Homborg 2021-11-08 17:38:05 +01:00
parent 12117cfe3d
commit f724541c0a

View file

@ -156,11 +156,7 @@ controllers.controller("colorsController", function($scope, $http) {
// js is dumb - the empty string is false,
// but we want that to mean unsetting a var.
if (!$scope.selectedColorScheme[name] && $scope.selectedColorScheme[name] !== '') {
// Fall back onto the defaut colorscheme.
selected = color_scheme_fish_default[name];
if (!selected && selected !== '') {
selected = '';
}
selected = '';
} else {
selected = $scope.selectedColorScheme[name];
}