Skip to content

Commit

Permalink
fix: cannot read property size of undefined (realm#6626)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Gutner committed Oct 22, 2024
1 parent a2e5ed8 commit 868eb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/realm/src/Results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class Results<T = unknown> extends OrderedCollection<
}

get length(): number {
return this.internal.size();
return this.internal?.size();
}

set length(value: number) {
Expand Down

0 comments on commit 868eb47

Please sign in to comment.