fixed silent panics

This commit is contained in:
bronkuu 2026-06-15 15:05:52 +02:00
parent 762c2a2e36
commit 2940f00142
4 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ import (
)
templ CakePage(cake models.Cake) {
@Layout(cakeTitle(cake), nil, CakeForm(cake))
@Layout(cakeTitle(cake), templ.NopComponent, CakeForm(cake))
}
templ CakeForm(cake models.Cake) {

View file

@ -7,7 +7,7 @@ import (
)
templ CakesPage(cakes []models.Cake) {
@Layout("Katalog", nil, CakesMain(cakes))
@Layout("Katalog", templ.NopComponent, CakesMain(cakes))
}
templ CakesMain(cakes []models.Cake) {

View file

@ -3,7 +3,7 @@ package templates
import "strconv"
templ Confirmation(title string, id int) {
@Layout(title, nil, ConfirmationBody(id))
@Layout(title, templ.NopComponent, ConfirmationBody(id))
}
templ ConfirmationBody(id int) {

View file

@ -7,7 +7,7 @@ import (
)
templ OrderPage(order models.Order, catalogue []models.Cake) {
@Layout(orderTitle(order), nil, OrderForm(order, catalogue))
@Layout(orderTitle(order), templ.NopComponent, OrderForm(order, catalogue))
}
templ OrderForm(order models.Order, catalogue []models.Cake) {