Merge pull request #292 from tbsmark86/master

Fix: Profile params of type 'select' ignored default value from profile
This commit is contained in:
Norbert Renner 2020-05-27 08:27:35 +02:00 committed by GitHub
commit 1b66989cfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
});