Select first dropdown entry for style if there is no default

before-bootstrap
Candid Dauth 2016-02-28 18:23:11 +01:00
rodzic c197725fc5
commit 86eae5420e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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) {