diff options
author | 2022-11-25 16:37:57 +0100 | |
---|---|---|
committer | 2022-11-25 16:37:57 +0100 | |
commit | 5c5c8ceaf0a0797100899af5119a00407f2045dc (patch) | |
tree | 1a99a18165150b3498ade672d23fade258de6a3a /web/source/settings/admin/emoji/detail.js | |
parent | [feature/frogend] modify local emoji (#1143) (diff) | |
download | gotosocial-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.js | 2 |
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()}); } |