Skip to content

Commit

Permalink
Merge pull request #1769 from OpenC3/remove_star_from_chosen_script
Browse files Browse the repository at this point in the history
Remove star from chosen script
  • Loading branch information
ryanmelt authored Dec 16, 2024
2 parents b9f637e + 770d19b commit f925e27
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 f925e27

Please sign in to comment.