Skip to content

Commit

Permalink
fix fallback category name in list api
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
Frank Jogeleit committed Apr 29, 2024
1 parent 91674c0 commit 5a06aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/v2/views.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func MapToSourceDetails(categories []db.Category) []*SourceDetails {

func UpdateCategory(result db.Category, source *SourceDetails) {
for _, c := range source.Categories {
if c.Name == result.Name {
if c.Name == helper.Defaults(result.Name, "Other") {
MapResultToCategory(result, c)
return
}
Expand Down

0 comments on commit 5a06aac

Please sign in to comment.