component.DummyMenuItem: Force early replacement

This commit is contained in:
Tom Wiesing 2023-02-03 15:12:52 +01:00
parent 2466238388
commit a7309d5268
No known key found for this signature in database
7 changed files with 75 additions and 27 deletions

View file

@ -203,7 +203,6 @@ const (
)
func (ctx *tContext[C]) doMain(err error) (template.HTML, error) {
zerolog.Ctx(ctx.ctx).Info().Msg("doMain")
if err != nil {
zerolog.Ctx(ctx.ctx).Err(err).Msg("error lazy loading template")
return errUnknown, nil
@ -220,7 +219,6 @@ func (ctx *tContext[C]) doMain(err error) (template.HTML, error) {
}
func (ctx *tContext[C]) AfterBody() (template.HTML, error) {
zerolog.Ctx(ctx.ctx).Info().Msg("AfterBody()")
// everything was done already
if !ctx.cWaiting {
return "", nil