Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Show comments that are thread replies to the issue body
Rūdolfs Ošiņš committed 3 years ago
commit 1df28abed28cc8bf82a83f1f08d1374bbd5c9713
parent 34f40fba02e82cac6fca04f8caba4a05ea2b46c9
1 file changed +7 -2
modified src/views/projects/Issue.svelte
@@ -146,10 +146,15 @@
    }
  }

+
  const issueDescription = issue.discussion[0];
+

  $: selectedItem = issue.state.status === "closed" ? items[0] : items[1];
  $: threads = issue.discussion
-
    .slice(1) // Skip the first comment, which is the issue description
-
    .filter(comment => !comment.replyTo)
+
    .filter(
+
      comment =>
+
        (comment.id !== issueDescription.id && !comment.replyTo) ||
+
        comment.replyTo === issueDescription.id,
+
    )
    .map(thread => {
      return {
        root: thread,