MOBILE-4081 database: Fix entry.id is undefined after change group

main
Dani Palou 2022-12-15 17:06:28 +01:00
parent 413b69832b
commit 2afa7918b1
1 changed files with 1 additions and 0 deletions

View File

@ -352,6 +352,7 @@ export class AddonModDataEntryPage implements OnInit, OnDestroy {
if (this.offset === undefined) {
// No offset passed, display the first entry.
pageIndex = 0;
this.offset = 0;
} else if (this.offset > 0) {
// Online entry.
pageIndex = this.offset % perPage + (entries.offlineEntries?.length || 0);