diff --git a/explorer/src/components/RepoCard.svelte b/explorer/src/components/RepoCard.svelte index 80bb3f21b..00bc3ca24 100644 --- a/explorer/src/components/RepoCard.svelte +++ b/explorer/src/components/RepoCard.svelte @@ -30,6 +30,11 @@ $: baseUrl = repoInfo.baseUrl; $: isPrivate = repo.visibility.type === "private"; $: tip = defaultBranchTip(repo); + $: tipCommit = tip + ? api.repo + .getAllCommits(repo.rid, { parent: tip, perPage: 1 }) + .then(commits => commits[0]) + : undefined;