fixes ordering

This commit is contained in:
buttle 2022-04-28 19:45:52 +02:00
parent 8e11d984a2
commit 2819961762
1 changed files with 6 additions and 6 deletions

View File

@ -42,14 +42,14 @@ const store = new Vuex.Store({
state.page_count = 1 state.page_count = 1
}, },
setColumnOrder(state, payload) { setColumnOrder(state, payload) {
state.active_column = payload.active_column state.active_column = payload.column_name
state.column_order = payload.column_order state.column_order = payload.order
state.sites = order_items(state.sites, state.sites = order_items(state.sites,
payload.active_column, state.active_column,
payload.column_order) state.column_order)
state.filtered_sites = order_items(state.filtered_sites, state.filtered_sites = order_items(state.filtered_sites,
payload.active_column, state.active_column,
payload.column_order) state.column_order)
}, },
}, },
actions: { actions: {