MOBILE-3320 database: Fix advanced search entries
parent
4c870c072c
commit
fd49ee7057
|
@ -498,9 +498,11 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp
|
||||||
};
|
};
|
||||||
|
|
||||||
// Try to find page number and offset of the entry.
|
// Try to find page number and offset of the entry.
|
||||||
const pageXOffset = this.entries.findIndex((entry) => entry.id == entryId);
|
if (!this.search.searching) {
|
||||||
if (pageXOffset >= 0) {
|
const pageXOffset = this.entries.findIndex((entry) => entry.id == entryId);
|
||||||
params.offset = this.search.page * AddonModDataProvider.PER_PAGE + pageXOffset;
|
if (pageXOffset >= 0) {
|
||||||
|
params.offset = this.search.page * AddonModDataProvider.PER_PAGE + pageXOffset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CoreNavigator.navigateToSitePath(
|
CoreNavigator.navigateToSitePath(
|
||||||
|
|
Loading…
Reference in New Issue