From dda357655ca67eef7c87e40ee7863c84c3b77ed3 Mon Sep 17 00:00:00 2001 From: gsovereignty Date: Fri, 13 Oct 2023 15:15:12 +0800 Subject: [PATCH] problem: not adding parent ID to problem --- src/components/modals/AddProblem.svelte | 2 +- src/routes/problems/+page.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/modals/AddProblem.svelte b/src/components/modals/AddProblem.svelte index 86b30ae..ac81e65 100644 --- a/src/components/modals/AddProblem.svelte +++ b/src/components/modals/AddProblem.svelte @@ -117,7 +117,7 @@ function headEvent(anchorID, commitID, status, rocket) { e.tags.push(["e", commitID, "", "commit"]) e.tags.push(["s", status]) if (parent.length == 64) { - e.tags.push(["e", parent, "", parent]) + e.tags.push(["e", parent, "", "parent"]) } //todo get exiting problem from state and include existing parents (etc) let rocketTag = ["e", nostrocketIgnitionEvent, "", "rocket"] diff --git a/src/routes/problems/+page.svelte b/src/routes/problems/+page.svelte index 92ce8fc..0387d5a 100644 --- a/src/routes/problems/+page.svelte +++ b/src/routes/problems/+page.svelte @@ -15,8 +15,8 @@

{problem.Title}

-
{problem.Summary? problem.Summary : "No summary available"}
-

{problem.FullText? problem.Fulltext : "Full text is not available"}

+ {#if problem.Summary}
{problem.Summary}
{/if} + {#if problem.FullText}

{problem.FullText}

{/if}

ID: {problem.UID}

Last Update: {problem.LastHeadHeight}

Status: {problem.Status}