fix: empty commands setting

This commit is contained in:
Ramires Viana 2020-09-29 14:05:03 +00:00
parent dd7b9ddd85
commit c6d4fcd08f
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@ export default {
return this.commands.join(' ') return this.commands.join(' ')
}, },
set (value) { set (value) {
this.$emit('update:commands', value.split(' ')) if (value !== '') {
this.$emit('update:commands', value.split(' '))
} else {
this.$emit('update:commands', [])
}
} }
} }
} }