Fix repo tag count when a repo name is a prefix for another repo name(s)

This commit is contained in:
Roman Vynar
2024-05-06 16:47:37 +03:00
parent c7c3a815fb
commit b49076db7c
3 changed files with 8 additions and 4 deletions

2
web.go
View File

@@ -76,7 +76,7 @@ func (a *apiClient) viewCatalog(c echo.Context) error {
}
data.Set("repos", repos)
data.Set("isCatalogReady", a.client.IsCatalogReady())
data.Set("tagCounts", a.client.TagCounts(repoPath, repos))
data.Set("tagCounts", a.client.SubRepoTagCounts(repoPath, repos))
data.Set("tags", tags)
if repoPath != "" && (len(repos) > 0 || len(tags) > 0) {
// Do not show events in the root of catalog.