diff --git a/src/style_manager/model/PropertyRadio.js b/src/style_manager/model/PropertyRadio.js index d3fe7886d..1b3721b36 100644 --- a/src/style_manager/model/PropertyRadio.js +++ b/src/style_manager/model/PropertyRadio.js @@ -23,9 +23,9 @@ export default class PropertyRadio extends Property { * Get current selected option. * @returns {Object | null} */ - getOption() { - const id = this.getValue(); - return this.getOptions().filter(o => this.getOptionId(o) === id)[0] || null; + getOption(id) { + const idSel = id || this.getValue(); + return this.getOptions().filter(o => this.getOptionId(o) === idSel)[0] || null; } /**