Skip to content

Commit b8a366d

Browse files
committed
chore: refactor
1 parent 7dcf6fe commit b8a366d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui-pager/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ export class Pager extends PagerBase {
372372
}
373373

374374
get _childrenCount(): number {
375-
return this.items?.length || this._childrenViews?.length || 0;
375+
return (this.items && this.items.length) || (this._childrenViews && this._childrenViews.length) || 0;
376376
}
377377

378378
[indicatorColorProperty.setNative](value: Color | string) {

0 commit comments

Comments
 (0)