kopia lustrzana https://github.com/FacilMap/facilmap
Select first dropdown entry for style if there is no default
rodzic
c197725fc5
commit
86eae5420e
|
@ -221,7 +221,7 @@ function _updateObjectStyles(objectStream, isLine, callback) {
|
|||
return null;
|
||||
};
|
||||
|
||||
var option = _find(object.data[field.name]) || _find(field.default);
|
||||
var option = _find(object.data[field.name]) || _find(field.default) || field.options[0];
|
||||
|
||||
var update = { };
|
||||
if(option != null) {
|
||||
|
|
Ładowanie…
Reference in New Issue