remove superfluous logging
This commit is contained in:
parent
5a10557e47
commit
4bb308b1f2
|
@ -87,7 +87,6 @@ function EmojiDetail({emoji}) {
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (category != emoji.category && !categoryState.open && !isNewCategory && category.trim().length > 0) {
|
if (category != emoji.category && !categoryState.open && !isNewCategory && category.trim().length > 0) {
|
||||||
console.log("updating to", category);
|
|
||||||
modifyEmoji({id: emoji.id, category: category.trim()});
|
modifyEmoji({id: emoji.id, category: category.trim()});
|
||||||
}
|
}
|
||||||
}, [isNewCategory, category, categoryState.open, emoji.category, emoji.id, modifyEmoji]);
|
}, [isNewCategory, category, categoryState.open, emoji.category, emoji.id, modifyEmoji]);
|
||||||
|
|
|
@ -97,13 +97,13 @@ module.exports = function NewEmojiForm({ emoji }) {
|
||||||
image,
|
image,
|
||||||
shortcode,
|
shortcode,
|
||||||
category
|
category
|
||||||
}).unwrap();
|
});
|
||||||
}).then(() => {
|
}).then((res) => {
|
||||||
|
if (res.error == undefined) {
|
||||||
resetFile();
|
resetFile();
|
||||||
resetShortcode();
|
resetShortcode();
|
||||||
resetCategory();
|
resetCategory();
|
||||||
}).catch((e) => {
|
}
|
||||||
console.error("Emoji upload error:", e);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,6 @@ function BulkBlocking() {
|
||||||
setStatus(stat);
|
setStatus(stat);
|
||||||
});
|
});
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
console.error(e);
|
|
||||||
setError(e.message);
|
setError(e.message);
|
||||||
setStatus("");
|
setStatus("");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue