Skip to content

Commit

Permalink
Merge pull request #294 from Breeding-Insight/bug/BI-1129
Browse files Browse the repository at this point in the history
[BI-1129] add fix for pagination bug
  • Loading branch information
dmeidlin authored Jan 19, 2023
2 parents c389374 + 12a6bc8 commit 0967b2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/germplasm/GermplasmTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<b-table-column v-if="entryNumberVisible" field="importEntryNumber" label="Entry Number" sortable v-slot="props" :th-attrs="(column) => ({scope:'col'})" searchable>
Expand Down Expand Up @@ -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);
}
}
</script>

0 comments on commit 0967b2b

Please sign in to comment.