Browse Source

fix: repo collection to include unique commit

set the unique_commit field in the RepoCollection
as this was previously never being set
master
DanConwayDev 2 years ago
parent
commit
0255112c9b
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 4
      src/lib/stores/repos.ts

4
src/lib/stores/repos.ts

@ -81,6 +81,10 @@ export const ensureRepoCollection = (
repos[unique_commit_or_identifier].update((repo_collection) => { repos[unique_commit_or_identifier].update((repo_collection) => {
return { return {
...repo_collection, ...repo_collection,
unique_commit:
repo_collection.unique_commit.length > 0
? repo_collection.unique_commit
: repo_event.unique_commit || '',
events: [...repo_collection.events, repo_event as RepoEvent], events: [...repo_collection.events, repo_event as RepoEvent],
} }
}) })

Loading…
Cancel
Save