Skip to content

Commit

Permalink
wip: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Jul 21, 2024
1 parent 5c88259 commit 5e8cc49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion internal/components/designs/designs-tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/zeiss/fiber-htmx/components/links"
"github.com/zeiss/fiber-htmx/components/tables"
"github.com/zeiss/service-lens/internal/models"
"github.com/zeiss/service-lens/internal/utils"
)

// DesignsTableProps ...
Expand Down Expand Up @@ -126,7 +127,7 @@ func DesignsTable(props DesignsTableProps, children ...htmx.Node) htmx.Node {
return htmx.Td(
links.Link(
links.LinkProps{
Href: "/desigs/" + row.ID.String(),
Href: fmt.Sprintf(utils.ShowDesigUrlFormat, row.ID),
},
htmx.Text(row.Title),
),
Expand Down
4 changes: 2 additions & 2 deletions internal/controllers/designs/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ func NewListDesignsController(store seed.Database[ports.ReadTx, ports.ReadWriteT

// Prepare ...
func (l *ListDesignsControllerImpl) Prepare() error {
err := l.Ctx().QueryParser(&l.results)
err := l.BindBody(&l.results)
if err != nil {
return nil
return err
}

return l.store.ReadTx(l.Context(), func(ctx context.Context, tx ports.ReadTx) error {
Expand Down

0 comments on commit 5e8cc49

Please sign in to comment.