Deleting first note on wiki threads bug

Summary

Deleting the first note on the wiki thread causes the entire discussion to be unrendered instead of just unrendering the first note. Refreshing the page fixes this issue, but temporarily unrendering the entire discussion causes confusion.

Steps to reproduce

  1. Clone this MR
  2. Add a thread on a wiki comment section, and add a reply to that discussion
  3. Delete the first note in the thread (not the reply)
  4. The entire note will be unrendered until you refresh the page

What is the expected correct behavior?

Only the first note should be unrendered and the first reply should replace original first note

Relevant logs and/or screenshots

Screen Recording 2024-12-18 at 00.08.36.mov

Edited by Salihu Dickson