From 12a6bc8a92c2b8ef595bcbddce9d2135e5fc01b5 Mon Sep 17 00:00:00 2001 From: dmeidlin <14339308+dmeidlin@users.noreply.github.com> Date: Fri, 13 Jan 2023 17:31:31 -0500 Subject: [PATCH] add fix for pagination bug --- src/components/germplasm/GermplasmTable.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/germplasm/GermplasmTable.vue b/src/components/germplasm/GermplasmTable.vue index b7e040ae0..1778bf7cd 100644 --- a/src/components/germplasm/GermplasmTable.vue +++ b/src/components/germplasm/GermplasmTable.vue @@ -12,7 +12,7 @@ v-bind:default-sort="entryNumberVisible ? [fieldMap['importEntryNumber'], 'ASC'] : [fieldMap['accessionNumber'], 'ASC']" v-on:sort="setSort" - v-on:search="filters = $event" + v-on:search="initSearch" v-bind:search-debounce="400" > @@ -186,5 +186,12 @@ export default class GermplasmTable extends Vue { } } + initSearch(filters: any) { + this.filters = filters; + + // When filtering the list, set a page to the first page. + this.paginationController.updatePage(1); + } + } \ No newline at end of file