1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-30 07:48:57 +09:00

[Client] Fix bug

This commit is contained in:
syuilo 2018-11-05 13:23:30 +09:00
parent f84e9c7dc8
commit cbba03b376
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -67,7 +67,7 @@ export default Vue.extend({
(this as any).api('admin/emoji/add', { (this as any).api('admin/emoji/add', {
name: this.name, name: this.name,
url: this.url, url: this.url,
aliases: this.aliases.split(' ') aliases: this.aliases.split(' ').filter(x => x.length > 0)
}).then(() => { }).then(() => {
this.$swal({ this.$swal({
type: 'success', type: 'success',
@ -95,7 +95,7 @@ export default Vue.extend({
id: emoji.id, id: emoji.id,
name: emoji.name, name: emoji.name,
url: emoji.url, url: emoji.url,
aliases: emoji.aliases.split(' ') aliases: emoji.aliases.split(' ').filter(x => x.length > 0)
}).then(() => { }).then(() => {
this.$swal({ this.$swal({
type: 'success', type: 'success',