From d6d8d09f040bdc119b2536017903e355fb2856d7 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 23 Aug 2023 21:02:29 +0200 Subject: [PATCH] merge back fixes --- app/static/js/render.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/static/js/render.js b/app/static/js/render.js index c9a2032..d8097f8 100644 --- a/app/static/js/render.js +++ b/app/static/js/render.js @@ -44,11 +44,12 @@ function renderItem(data) { ` if (!item.title) { - div.querySelector('item-title').remove() + div.querySelector('.item-title').remove() } + var comments = div.querySelector('.comments') if (window.renderComments) { - renderComments(div.querySelector('.comments'), data) + renderComments(comments, data) } else { comments.remove() }