mirror of
1
Fork 0

remove superfluous logging

This commit is contained in:
f0x 2023-01-08 17:30:55 +00:00
parent 5a10557e47
commit 4bb308b1f2
3 changed files with 7 additions and 9 deletions

View File

@ -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]);

View File

@ -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();
}
});
}

View File

@ -164,7 +164,6 @@ function BulkBlocking() {
setStatus(stat);
});
}).catch((e) => {
console.error(e);
setError(e.message);
setStatus("");
});