We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9250264 commit 73cc042Copy full SHA for 73cc042
src/packages/modules-operations/tree/index.jsx
@@ -52,7 +52,7 @@ export const updateParent = (
52
export const updateTree = (treeData, leaf, familyIndex, seriesIndex) => {
53
return treeData.map((data, i) => {
54
if (i === familyIndex) {
55
- if (seriesIndex < 0) {
+ if (seriesIndex === undefined) {
56
return leaf;
57
} else {
58
return {
@@ -91,6 +91,7 @@ export const Component = () => {
91
useEffect(() => {
92
if (selectedLeaf.node) {
93
const { treeData, node, expanded, path } = selectedLeaf;
94
+
95
const isFamily = path.length === 1;
96
const isSeries = path.length === 2;
97
0 commit comments