diff --git a/components/category-toolgroup.vue b/components/category-toolgroup.vue index 5a092f75..9bc8248a 100644 --- a/components/category-toolgroup.vue +++ b/components/category-toolgroup.vue @@ -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 diff --git a/store/index.js b/store/index.js index abca8dff..7841431f 100644 --- a/store/index.js +++ b/store/index.js @@ -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; + } };