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