Skip to content

Commit

Permalink
fix(tree): 匹配节点值value0 时,不能正确匹配的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
RSS1102 committed Oct 11, 2024
1 parent 7033aea commit 959ff31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tree/tree-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class TreeStore {
} else if (item instanceof TreeNode) {
val = item.value;
}
if (!val) {
if (!val && val !== 0) {
nodes = this.nodes.slice(0);
} else {
const node = this.getNode(val);
Expand Down

0 comments on commit 959ff31

Please sign in to comment.