From 938458b56e87d4cc98879cbc1c680ec5f6e0a771 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Thu, 25 Apr 2024 21:33:01 +0200 Subject: [PATCH] [web] Remove unused arguments --- web-src/src/store/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web-src/src/store/index.js b/web-src/src/store/index.js index 29e775f6..b6da6636 100644 --- a/web-src/src/store/index.js +++ b/web-src/src/store/index.js @@ -179,7 +179,7 @@ export default createStore({ }, actions: { - add_notification({ commit, state }, notification) { + add_notification({ state }, notification) { const newNotification = { id: state.notifications.next_id++, text: notification.text, @@ -203,7 +203,7 @@ export default createStore({ }, notification.timeout) } }, - add_recent_search({ commit, state }, query) { + add_recent_search({ state }, query) { const index = state.recent_searches.indexOf(query) if (index !== -1) { state.recent_searches.splice(index, 1) @@ -213,19 +213,19 @@ export default createStore({ state.recent_searches.pop() } }, - delete_notification({ commit, state }, notification) { + delete_notification({ state }, notification) { const index = state.notifications.list.indexOf(notification) if (index !== -1) { state.notifications.list.splice(index, 1) } }, - remove_recent_search({ commit, state }, query) { + remove_recent_search({ state }, query) { const index = state.recent_searches.indexOf(query) if (index !== -1) { state.recent_searches.splice(index, 1) } }, - update_settings_option({ commit, state }, option) { + update_settings_option({ state }, option) { const settingCategory = state.settings.categories.find( (e) => e.name === option.category ),