Skip to content

Commit

Permalink
Remove star from chosen script
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmelt committed Dec 16, 2024
1 parent b9f637e commit 770d19b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ export default {
watch: {
selected(newVal, oldVal) {
if (newVal !== oldVal) {
this.$emit('file', newVal)
if (newVal.slice(-1) === '*') {
// Remove the * before returning
this.$emit('file', newVal.substring(0, newVal.length - 1))
} else {
this.$emit('file', newVal)
}
}
},
search(val) {
Expand Down

0 comments on commit 770d19b

Please sign in to comment.