From cbba03b37670e83a65fdaf43dc724cdb2b237795 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 5 Nov 2018 13:23:30 +0900 Subject: [PATCH] [Client] Fix bug --- src/client/app/admin/views/emoji.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/app/admin/views/emoji.vue b/src/client/app/admin/views/emoji.vue index 249028b22e..5a4df29cba 100644 --- a/src/client/app/admin/views/emoji.vue +++ b/src/client/app/admin/views/emoji.vue @@ -67,7 +67,7 @@ export default Vue.extend({ (this as any).api('admin/emoji/add', { name: this.name, url: this.url, - aliases: this.aliases.split(' ') + aliases: this.aliases.split(' ').filter(x => x.length > 0) }).then(() => { this.$swal({ type: 'success', @@ -95,7 +95,7 @@ export default Vue.extend({ id: emoji.id, name: emoji.name, url: emoji.url, - aliases: emoji.aliases.split(' ') + aliases: emoji.aliases.split(' ').filter(x => x.length > 0) }).then(() => { this.$swal({ type: 'success',