Compare commits

..

No commits in common. "9e28674453fadf7f264cd5d70cd1603156a238d6" and "8d799d74a64f344c91a110e5f004d47519a78cda" have entirely different histories.

View file

@ -45,7 +45,12 @@ export default {
shortcode: this.shortcode,
filename: '',
})
.then(({ data: resp }) => {
.then((resp) => resp.json())
.then((resp) => {
if (resp.error !== undefined) {
this.displayError(resp.error)
return
}
useInterfaceStore().pushGlobalNotice({
messageKey: 'admin_dash.emoji.copied_successfully',
messageArgs: [this.shortcode, this.packName],
@ -55,10 +60,6 @@ export default {
this.$refs.emojiPopover.hidePopover()
this.packName = ''
})
.catch((e) => {
this.displayError(e)
return
})
},
fetchEmojiPacksIfAdmin() {