diff --git a/openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/ScriptChooser.vue b/openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/ScriptChooser.vue index e50fd6f8d..f3e6d9fa6 100644 --- a/openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/ScriptChooser.vue +++ b/openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/ScriptChooser.vue @@ -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) {