fixed silent panics
This commit is contained in:
parent
762c2a2e36
commit
2940f00142
4 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue