diff --git a/pkg/app/app.go b/pkg/app/app.go index bd6ab2910..28c8d68ee 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -351,7 +351,7 @@ func performNavigate(d Dispatcher, u *url.URL, updateHistory bool) { } compo, ok := routes.createComponent(path) if !ok { - compo = ¬Found{} + compo = NotFound } disp, ok := d.(ClientDispatcher) diff --git a/pkg/app/notfound.go b/pkg/app/notfound.go index ad156177a..8425a865f 100644 --- a/pkg/app/notfound.go +++ b/pkg/app/notfound.go @@ -3,7 +3,7 @@ package app var ( // NotFound is the ui element that is displayed when a request is not // routed. - NotFound UI = ¬Found{} + NotFound Composer = ¬Found{} ) type notFound struct {