diff --git a/src/style_manager/model/PropertySelect.js b/src/style_manager/model/PropertySelect.js index 440c5a11e..a1ac1d600 100644 --- a/src/style_manager/model/PropertySelect.js +++ b/src/style_manager/model/PropertySelect.js @@ -38,7 +38,7 @@ export default class PropertySelect extends Property { * @returns {Object | null} */ getOption(id) { - const idSel = id || this.getValue(); + const idSel = isDef(id) ? id : this.getValue(); return this.getOptions().filter(o => this.getOptionId(o) === idSel)[0] || null; }