summaryrefslogtreecommitdiffstats
path: root/public/js/index.js
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2019-10-21 20:17:25 -0300
committerLauris BH <lauris@nix.lv>2019-10-22 02:17:25 +0300
commitbac9424a62285e757114d1cc34961b6fa64829f7 (patch)
tree0d09f155933342040eef538644f9ac4741c84f8b /public/js/index.js
parentafeab941b3686f075065d74b894556cff79b757a (diff)
downloadgitea-bac9424a62285e757114d1cc34961b6fa64829f7.tar.gz
gitea-bac9424a62285e757114d1cc34961b6fa64829f7.zip
fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate emoji (#8609) (#8623)
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 3b15ad8f18..1daeef1a57 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -306,7 +306,7 @@ function initReactionSelector(parent) {
if (resp && (resp.html || resp.empty)) {
const content = $(vm).closest('.content');
let react = content.find('.segment.reactions');
- if (react.length > 0) {
+ if (!resp.empty && react.length > 0) {
react.remove();
}
if (!resp.empty) {