Skip to content

Commit

Permalink
[FIX] deselecting dropdown no longer crashes app
Browse files Browse the repository at this point in the history
Clicking the little 'x' icon in vue-select also
fires the @input hook but has a payload of null,
which breaks the processing method
  • Loading branch information
surchs committed Oct 17, 2023
1 parent d3ebcf8 commit 715f0dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/category-toolgroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
"alterColumnToToolMapping"
]),
selectTool(selectedTool) {
this.createToolGroup({
identifier: selectedTool.identifier,
label: selectedTool.label
});
if ( selectedTool !== null ) {
this.createToolGroup({
identifier: selectedTool.identifier,
label: selectedTool.label
});
}
},
highlightRow(rows) {
if ( 0 !== rows.length ) {
Expand Down

0 comments on commit 715f0dc

Please sign in to comment.