Fix wrong pagination handling in concordance

This commit is contained in:
Patrick Jentsch 2023-07-24 13:48:01 +02:00
parent cef82d9001
commit dd05657362

View File

@ -449,7 +449,7 @@ class CorpusAnalysisConcordance {
this.app.disableActionElements();
this.elements.progress.classList.remove('hide');
let page = parseInt(paginationTriggerElement.dataset.target);
subcorpus.o.paginate(page, this.settings.perPage, this.settings.context)
subcorpus.o.paginate(this.settings.context, page, this.settings.perPage)
.then(
(paginatedSubcorpus) => {
subcorpus.p = paginatedSubcorpus;