~alanpearce/searchix

5a2d54d9c8751935284293b2ffd396fff0a5d202 — Alan Pearce 5 months ago 94b21b2
fix: panic rendering search results
1 files changed, 4 insertions(+), 1 deletions(-)

M internal/components/results.templ
M internal/components/results.templ => internal/components/results.templ +4 -1
@@ 6,7 6,10 @@ import (
)

func convertMatch[I nix.Importable](m nix.Importable) *I {
	i := m.(I)
	i, ok := m.(I)
	if !ok {
		return nil
	}
	return &i
}