Skip to content

Commit

Permalink
#2490 Remove a value check
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalizer committed Jul 1, 2024
1 parent 7509f20 commit 524d03c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions dashboard-prime/src/components/skills/SkillsSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,11 @@ const removed = (removedItem) => {
};
const added = (addedItem) => {
if(addedItem.value) {
if(addedItem.originalEvent.type === 'click') {
if (multipleSelection.value) {
emit('added', addedItem[addedItem.length - 1].value);
} else {
emit('added', addedItem.value);
}
if(addedItem.originalEvent.type === 'click') {
if (multipleSelection.value) {
emit('added', addedItem[addedItem.length - 1].value);
} else {
emit('added', addedItem.value);
}
}
};
Expand Down

0 comments on commit 524d03c

Please sign in to comment.