From c4a83a7dd161fc4f7cd9cbb6479fa0e3f3794577 Mon Sep 17 00:00:00 2001 From: yan Date: Mon, 21 Oct 2019 14:28:26 +0800 Subject: [PATCH] fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate emoji --- 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 a903b219e7127..e9a4bcaac1de1 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) {