File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ const emptyCellPlaceholder = '-';
13
13
14
14
/**
15
15
* Get the corresponding value for a row object given a selector string.
16
- * Can select values from keys nested up to 3 levels.
17
- * @param selector string that corresponds to a key or nested group of keys (e.g. 'data.a.b.c') in an object.
16
+ * Can select values from keys nested up to 4 levels.
17
+ * @param selector string that corresponds to a key or nested group of keys (e.g. 'data.a.b.c.d ') in an object.
18
18
* @param row object that has the key(s) specified in selector
19
19
*/
20
20
export const getRowValueFromSelectorString = ( selector : string , row : any ) => {
@@ -29,6 +29,8 @@ export const getRowValueFromSelectorString = (selector: string, row: any) => {
29
29
return row [ selectors [ 0 ] ] [ selectors [ 1 ] ] [ selectors [ 2 ] ] ;
30
30
case 4 :
31
31
return row [ selectors [ 0 ] ] [ selectors [ 1 ] ] [ selectors [ 2 ] ] [ selectors [ 3 ] ] ;
32
+ case 5 :
33
+ return row [ selectors [ 0 ] ] [ selectors [ 1 ] ] [ selectors [ 2 ] ] [ selectors [ 3 ] ] [ selectors [ 4 ] ] ;
32
34
default :
33
35
return emptyCellPlaceholder ;
34
36
}
You can’t perform that action at this time.
0 commit comments