summaryrefslogtreecommitdiff
path: root/web/source/settings/admin/emoji/detail.js
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2022-11-25 16:37:57 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-25 16:37:57 +0100
commit5c5c8ceaf0a0797100899af5119a00407f2045dc (patch)
tree1a99a18165150b3498ade672d23fade258de6a3a /web/source/settings/admin/emoji/detail.js
parent[feature/frogend] modify local emoji (#1143) (diff)
downloadgotosocial-5c5c8ceaf0a0797100899af5119a00407f2045dc.tar.xz
[chore] Fix frogend admin emoji patch (#1148)
* fix className * fix unable to set category on new emoji * wrap emoji groups
Diffstat (limited to 'web/source/settings/admin/emoji/detail.js')
-rw-r--r--web/source/settings/admin/emoji/detail.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/source/settings/admin/emoji/detail.js b/web/source/settings/admin/emoji/detail.js
index 266084718..51e291448 100644
--- a/web/source/settings/admin/emoji/detail.js
+++ b/web/source/settings/admin/emoji/detail.js
@@ -81,7 +81,7 @@ function EmojiDetail({emoji}) {
}
React.useEffect(() => {
- if (category != emoji.category && !categoryState.open && !isNewCategory && emoji.category != undefined) {
+ if (category != emoji.category && !categoryState.open && !isNewCategory && category.trim().length > 0) {
console.log("updating to", category);
modifyEmoji({id: emoji.id, category: category.trim()});
}