diff --git a/js/tree/tree-store.ts b/js/tree/tree-store.ts index ab63edf0cd..643e2c1869 100644 --- a/js/tree/tree-store.ts +++ b/js/tree/tree-store.ts @@ -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);