From 6270ed6a8ea93872722b6a4c2b8982ccf31e190d Mon Sep 17 00:00:00 2001 From: behmaram Date: Mon, 8 Feb 2021 14:15:20 +0330 Subject: [PATCH] remove selected category item --- resources/js/Default/store/category/mutations.text | 2 -- 1 file changed, 2 deletions(-) diff --git a/resources/js/Default/store/category/mutations.text b/resources/js/Default/store/category/mutations.text index 2490363..c0aa86d 100644 --- a/resources/js/Default/store/category/mutations.text +++ b/resources/js/Default/store/category/mutations.text @@ -14,9 +14,7 @@ export default { REMOVE_|-MODULE-|(state, id) { const Index = state.|-snake_module-|.findIndex(x => x.id === id); - const selectedIndex = state.|-snake_module-|_selected.findIndex(x => x.id === id); Vue.delete(state.|-snake_module-|, Index); - Vue.delete(state.|-snake_module-|_selected, selectedIndex); Vue.set(state, '|-snake_module-|', addIndexTreeToList(state.|-snake_module-|)); },