diff options
author | yan <sxty32@hotmail.com> | 2019-10-21 19:02:51 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-10-21 14:02:51 +0300 |
commit | bfdcedfe89323b6ce1f0e3cf90a9816a4b669044 (patch) | |
tree | 7d131ae70ffd3d866a2a918115e88495d288cca4 /public | |
parent | 0bfe5eb10b1953cb1f85f7a7b6eb5f24724b8021 (diff) | |
download | gitea-bfdcedfe89323b6ce1f0e3cf90a9816a4b669044.tar.gz gitea-bfdcedfe89323b6ce1f0e3cf90a9816a4b669044.zip |
fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate emoji (#8609)
Diffstat (limited to 'public')
-rw-r--r-- | public/js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js index a903b219e7..e9a4bcaac1 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) { |