File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/sectionsWheelPicker Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import {SectionsWheelPickerProps} from './index';
7
7
export const SectionsWheelPickerDriver = ( props : ComponentProps ) => {
8
8
const driver = useComponentDriver < SectionsWheelPickerProps > ( props ) ;
9
9
10
- const sectionsDrivers = React . Children . toArray ( driver . getElement ( ) . props . children ) . map ( ( _section , index ) => {
11
- if ( typeof _section === 'object' && 'props' in _section ) {
10
+ const sectionsDrivers = React . Children . toArray ( driver . getElement ( ) . props . children ) . map ( ( section ) => {
11
+ if ( typeof section === 'object' && 'props' in section ) {
12
12
return WheelPickerDriver ( {
13
13
renderTree : props . renderTree ,
14
- testID : ` ${ props . testID } . ${ index } `
14
+ testID : section . props . testID
15
15
} ) ;
16
16
}
17
17
return undefined ;
You can’t perform that action at this time.
0 commit comments