Fix the type by id page

This commit is contained in:
2025-07-16 11:23:51 +01:00
parent 9167688e1e
commit b2eca1899b
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -60,11 +60,11 @@ func typePage(c *gin.Context) {
c.Redirect(404, "/404")
}
typ, err := expenses.GetCategory(typeID)
typ, err := expenses.GetType(typeID)
content := templating.HtmlTemplate(
fp.Join(cfg.AssetsDir, "/htmx/type.html"),
map[string]any{
"category": typ,
"type": typ,
},
)