From 365abfefd60a7ca03a7392f4b11507dfa1ba9f13 Mon Sep 17 00:00:00 2001 From: yan Date: Mon, 21 Oct 2019 19:02:51 +0800 Subject: [PATCH] fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate emoji (#8609) --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index 3b15ad8f1883d..1daeef1a57a3a 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) {