Fix the bug that the emoji don't disappear(#11489) (#11530)

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
pull/11557/head^2
L0veSunshine 5 years ago committed by GitHub
parent 655def5141
commit 2a6e6bf0f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web_src/js/index.js

@ -241,7 +241,7 @@ function initReactionSelector(parent) {
if (resp && (resp.html || resp.empty)) {
const content = $(vm).closest('.content');
let react = content.find('.segment.reactions');
if (!resp.empty && react.length > 0) {
if ((!resp.empty || resp.html === '') && react.length > 0) {
react.remove();
}
if (!resp.empty) {

Loading…
Cancel
Save