From c6d4fcd08f5f1531c2cef514dc86019e23e7289f Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Tue, 29 Sep 2020 14:05:03 +0000 Subject: [PATCH] fix: empty commands setting --- frontend/src/components/settings/Commands.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/settings/Commands.vue b/frontend/src/components/settings/Commands.vue index f09fe53a..62a4ea25 100644 --- a/frontend/src/components/settings/Commands.vue +++ b/frontend/src/components/settings/Commands.vue @@ -16,7 +16,11 @@ export default { return this.commands.join(' ') }, set (value) { - this.$emit('update:commands', value.split(' ')) + if (value !== '') { + this.$emit('update:commands', value.split(' ')) + } else { + this.$emit('update:commands', []) + } } } }