From 48965d9e0aa3412b91b4e8ed697b4d08d411d2ce Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 27 Feb 2024 11:17:17 +0000 Subject: [PATCH] fix: displaying no root recent patches this are now hidden as the repo identifier cannot be found without the a tag in the root patch event the root event will be shown --- src/lib/stores/Proposals.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/stores/Proposals.ts b/src/lib/stores/Proposals.ts index 31758c1..8cef94f 100644 --- a/src/lib/stores/Proposals.ts +++ b/src/lib/stores/Proposals.ts @@ -113,6 +113,10 @@ export const ensureProposalSummaries = async (repo_id: string | undefined) => { event.content.length > 0 && !event.tags.some((t) => t.length > 1 && t[1] === 'revision-root') ) { + if (!extractRepoIdentiferFromProposalEvent(event) && !repo_id) { + // link to proposal will not work as it requires an identifier + return + } proposal_summaries.update((proposals) => { return { ...proposals,