Browse Source

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
master
DanConwayDev 2 years ago
parent
commit
48965d9e0a
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 4
      src/lib/stores/Proposals.ts

4
src/lib/stores/Proposals.ts

@ -113,6 +113,10 @@ export const ensureProposalSummaries = async (repo_id: string | undefined) => { @@ -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,

Loading…
Cancel
Save