From 87fe0f0034c48afe956ef31b6c6136384c1d2bf5 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 22 Dec 2022 15:29:10 +0400 Subject: [PATCH] Update getOption in PropertySelect --- src/style_manager/model/PropertySelect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }