From e58e93d87e648a7544583d328818fb11c9c1c43e Mon Sep 17 00:00:00 2001 From: Daan Wijns Date: Sat, 30 Jan 2021 11:08:06 +0100 Subject: [PATCH] fix ordering reset #133 --- src/store/mutations.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/store/mutations.js b/src/store/mutations.js index af7daabd..834b4048 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -92,20 +92,16 @@ export default { const { data } = await qbit.getAppPreferences() state.settings = data }, - UPDATE_SORT_OPTIONS: (state, { - reverse = false, + UPDATE_SORT_OPTIONS: (state, { hashes = [], filter = null, category = null, - tracker = null, - sort = null + tracker = null }) => { - state.sort_options.reverse = reverse state.sort_options.hashes = hashes state.sort_options.filter = filter state.sort_options.category = category state.sort_options.tracker = tracker - state.sort_options.sort = sort }, FETCH_CATEGORIES: async state => state.categories = Object.values(await (qbit.getCategories())), FETCH_SEARCH_PLUGINS: async state => state.searchPlugins = await qbit.getSearchPlugins(),