Skip to content

Commit

Permalink
Fixed #2372 - Treeselect resolution for node ids equals to 0 (#2375)
Browse files Browse the repository at this point in the history
* button extension to work with binary data

* Treeselect resolution for node ids equals to 0

Here a solution to resolve the bug:
#2372

* Update TreeSelect.js

Co-authored-by: flashboss <l.stancapiano@sourcesense.com>
Co-authored-by: Luca Stancapiano <lucastancapiano@MacBook-Pro.wind3.hub>
  • Loading branch information
3 people committed Nov 3, 2021
1 parent a8a13fd commit 679f917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/treeselect/TreeSelect.js
Expand Up @@ -138,7 +138,7 @@ export class TreeSelect extends Component {

getSelectedNodes() {
let selectedNodes = [];
if (this.props.value && this.props.options) {
if (ObjectUtils.isNotEmpty(this.props.value) && this.props.options) {
let keys = this.props.selectionMode === 'single' ? {[`${this.props.value}`]: true} : {...this.props.value};
this.findSelectedNodes(null, keys, selectedNodes);
}
Expand Down

0 comments on commit 679f917

Please sign in to comment.