Skip to content

Commit 11120ab

Browse files
committed
fix(core): correctly reference primary body column for backend sorting
Also fixes ongoing issue with sorting and pagination
1 parent 1e6285c commit 11120ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/core/members/List.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{{ props.row.date_of_birth }}
4040
</b-table-column>
4141

42-
<b-table-column field="primary_body" label="Primary body" sortable v-slot="props">
42+
<b-table-column field="primary_body_id" label="Primary body" sortable v-slot="props">
4343
<span v-if="props.row.primary_body_id">{{ bodyMapping[props.row.primary_body_id] }}</span>
4444
<span v-else><i>Not set.</i></span>
4545
</b-table-column>
@@ -110,6 +110,7 @@ export default {
110110
onSort (field, order) {
111111
this.sortField = field
112112
this.sortOrder = order
113+
this.page = 0
113114
this.fetchData()
114115
},
115116
fetchData () {

0 commit comments

Comments
 (0)