diff --git a/web/source/settings/admin/emoji/local/detail.js b/web/source/settings/admin/emoji/local/detail.js index 1c74b854b..0687680b4 100644 --- a/web/source/settings/admin/emoji/local/detail.js +++ b/web/source/settings/admin/emoji/local/detail.js @@ -87,7 +87,6 @@ function EmojiDetail({emoji}) { React.useEffect(() => { if (category != emoji.category && !categoryState.open && !isNewCategory && category.trim().length > 0) { - console.log("updating to", category); modifyEmoji({id: emoji.id, category: category.trim()}); } }, [isNewCategory, category, categoryState.open, emoji.category, emoji.id, modifyEmoji]); diff --git a/web/source/settings/admin/emoji/local/new-emoji.js b/web/source/settings/admin/emoji/local/new-emoji.js index a9a5ea53a..e340e8559 100644 --- a/web/source/settings/admin/emoji/local/new-emoji.js +++ b/web/source/settings/admin/emoji/local/new-emoji.js @@ -97,13 +97,13 @@ module.exports = function NewEmojiForm({ emoji }) { image, shortcode, category - }).unwrap(); - }).then(() => { - resetFile(); - resetShortcode(); - resetCategory(); - }).catch((e) => { - console.error("Emoji upload error:", e); + }); + }).then((res) => { + if (res.error == undefined) { + resetFile(); + resetShortcode(); + resetCategory(); + } }); } diff --git a/web/source/settings/admin/federation.js b/web/source/settings/admin/federation.js index b7658f444..26c46ed0b 100644 --- a/web/source/settings/admin/federation.js +++ b/web/source/settings/admin/federation.js @@ -164,7 +164,6 @@ function BulkBlocking() { setStatus(stat); }); }).catch((e) => { - console.error(e); setError(e.message); setStatus(""); });