Fix: Profile params of type 'select' ignored default value from profile

This commit is contained in:
Tobias 2020-05-12 20:11:47 +02:00
parent e5dc5181d8
commit 3457f92fbf

View file

@ -260,6 +260,9 @@ BR.Profile = L.Evented.extend({
Object.keys(paramValues).forEach(function(paramValue) {
var option = document.createElement('option');
option.value = paramValue;
if (paramValue == params[param].value) {
option.selected = true;
}
option.append(paramValues[paramValue]);
select.appendChild(option);
});