Prevent adding tags with zero count to the cached tag list

This commit is contained in:
2025-05-30 20:02:22 +08:00
parent 4f99bff2f5
commit 5fca51f852

View File

@@ -116,7 +116,9 @@ func updateCachedTagList() error {
if err != nil { if err != nil {
return err return err
} }
cachedTagList = append(cachedTagList, *tag.ToView().WithCount(int(count))) if count > 0 {
cachedTagList = append(cachedTagList, *tag.ToView().WithCount(int(count)))
}
} }
return nil return nil
} }