From bfdcedfe89323b6ce1f0e3cf90a9816a4b669044 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 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) {