File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ export class Pager extends PagerBase {
159
159
160
160
getChildView ( index : number ) : View {
161
161
if ( this . _childrenViews ) {
162
- return this . _childrenViews [ index ] . view ;
162
+ return this . _childrenViews [ index ] ? .view ;
163
163
}
164
164
return this . enumerateViewHolders < View > ( ( v ) => ( v . getAdapterPosition ( ) === index ? v . view : undefined ) ) ;
165
165
}
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ export abstract class PagerBase extends View implements AddChildFromBuilder {
194
194
}
195
195
196
196
getChildView ( index : number ) : View {
197
- return this . _childrenViews && this . _childrenViews [ index ] . view ;
197
+ return this . _childrenViews && this . _childrenViews [ index ] ? .view ;
198
198
}
199
199
_removeView ( view : ViewBase ) {
200
200
// inside the recyclerview we wrap the PagerItem in a StackLayout
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export class Pager extends PagerBase {
131
131
132
132
getChildView ( index : number ) : View {
133
133
if ( this . _childrenViews ) {
134
- return this . _childrenViews [ index ] . view ;
134
+ return this . _childrenViews [ index ] ? .view ;
135
135
}
136
136
let result : View ;
137
137
if ( this . nativeViewProtected ) {
You can’t perform that action at this time.
0 commit comments