diff --git a/src/app/samples/samples.component.ts b/src/app/samples/samples.component.ts index 5eb4b0e..9ec3226 100644 --- a/src/app/samples/samples.component.ts +++ b/src/app/samples/samples.component.ts @@ -164,7 +164,7 @@ export class SamplesComponent implements OnInit { f(); }); } - + // set toPage to null to reload first page, queues calls loadSamples(options: LoadSamplesOptions = {}, event = null) { if (event) { // adjust active keys @@ -179,6 +179,9 @@ export class SamplesComponent implements OnInit { } this.updateActiveKeys(); } + if(options.firstPage){ + this.storage.set('currentPage', 1); + } this.loadSamplesQueue.push(options); if (this.loadSamplesQueue.length <= 1) { // nothing queued up this.sampleLoader(this.loadSamplesQueue[0]);