Browse Source

fix: proposal lists not refreshing

not checking if  selected repo_id had changed
master
DanConwayDev 2 years ago
parent
commit
99cf7cd48f
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 2
      src/lib/stores/Proposals.ts

2
src/lib/stores/Proposals.ts

@ -153,7 +153,7 @@ export const ensureProposalSummaries = async (repo_id: string | undefined) => { @@ -153,7 +153,7 @@ export const ensureProposalSummaries = async (repo_id: string | undefined) => {
// filter out non root proposals if repo event supports nip34+ features
if (!repo_id && repo_identifier.length > 0) {
const repo_collection = await returnRepoCollection(repo_identifier)
if (repo_collection.unique_commit) {
if (selected_repo_id === repo_id && repo_collection.unique_commit) {
proposal_summaries.update((proposals) => {
return {
...proposals,

Loading…
Cancel
Save