]> source.dussan.org Git - gitea.git/commitdiff
fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate...
authoryan <sxty32@hotmail.com>
Mon, 21 Oct 2019 11:02:51 +0000 (19:02 +0800)
committerLauris BH <lauris@nix.lv>
Mon, 21 Oct 2019 11:02:51 +0000 (14:02 +0300)
public/js/index.js

index a903b219e71278c1da8d41ada06a26555f4ae15c..e9a4bcaac1de1bcb84de2f2217afb784f4bd4722 100644 (file)
@@ -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) {