0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 11:14:07 +01:00

fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate emoji (#8609)

This commit is contained in:
yan 2019-10-21 19:02:51 +08:00 committed by Lauris BH
parent 0bfe5eb10b
commit bfdcedfe89

View 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) {