File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,10 @@ export default function LegendKey(props: snapHierarchy) {
36
36
}
37
37
}
38
38
// now we convert the object to an array, each index being a string of the range of the branch
39
+ // initializing array and new array with the values from resultRangeColor
39
40
const branchesArr = [ ] ;
40
41
const arrValues = Object . values ( resultRangeColor ) ;
41
-
42
+ //iterate through and values and combine them into a string of range for each branch
42
43
for ( let i = 0 ; i < arrValues . length ; i += 1 ) {
43
44
const len = arrValues [ i ] . length ;
44
45
const tempVal = `${ arrValues [ i ] [ 0 ] } - ${ arrValues [ i ] [ len - 1 ] } ` ;
@@ -47,6 +48,7 @@ export default function LegendKey(props: snapHierarchy) {
47
48
return branchesArr ;
48
49
}
49
50
51
+ // this is where we invoke the function to return an array of range of branches for legendKey
50
52
const getSnapshotIds = ( obj , snapshotIds = [ ] ) => {
51
53
snapshotIds . push ( `${ obj . name } .${ obj . branch } ` ) ;
52
54
if ( obj . children ) {
You can’t perform that action at this time.
0 commit comments