Skip to content

Commit

Permalink
[FIX] Addressed the issue with missing mutations (#837)
Browse files Browse the repository at this point in the history
Imported and implemented missing mutations
  • Loading branch information
rmanaem authored Dec 19, 2024
1 parent 6531ad7 commit b879f3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion components/category-toolgroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@
...mapMutations([
"createAssessmentTool",
"alterColumnToToolMapping"
"alterColumnToToolMapping",
"alterColumnCategoryMapping",
"deselectTool"
]),
filterOptions(option, label, search) {
// Match the first character of the label with the first character of the search string
Expand Down
7 changes: 6 additions & 1 deletion store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,5 +950,10 @@ export const mutations = {
Vue.set(p_state, key, initialState[key]);
}
});
}
},

deselectTool(p_state, toolIdentifier) {
const toolIndex = p_state.toolTerms.findIndex(tool => tool.identifier === toolIdentifier);
p_state.toolTerms[toolIndex].selected = false;
}
};

0 comments on commit b879f3b

Please sign in to comment.