Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into lastminutechanges
Browse files Browse the repository at this point in the history
  • Loading branch information
Stucknight committed Aug 17, 2023
2 parents d48af2f + 86b1eea commit c05f898
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/static/js/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ function renderReply(reply) {
replyDiv.replaceWith(renderReply(reply));
});

replyDiv.querySelector('.mark-answer').addEventListener('click', async () => {
replyDiv.querySelector('.mark-answer')?.addEventListener('click', async () => {
await post.resolve(reply);
replyDiv.replaceWith(renderReply(reply));
renderPost(post);
});

return replyDiv;
Expand Down

0 comments on commit c05f898

Please sign in to comment.