Browse Source

Update getOption in PropertySelect

pull/4830/head
Artur Arseniev 4 years ago
parent
commit
87fe0f0034
  1. 2
      src/style_manager/model/PropertySelect.js

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

Loading…
Cancel
Save