From dbeddced4046cb5756af2604f5cb6734b3e7cee6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 21 Jun 2024 16:58:38 +0200 Subject: fix: panic rendering results --- internal/components/options.templ | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/components/options.templ') diff --git a/internal/components/options.templ b/internal/components/options.templ index ce3ffff..44bc5a3 100644 --- a/internal/components/options.templ +++ b/internal/components/options.templ @@ -15,7 +15,9 @@ templ Options(result *index.Result) { for _, hit := range result.Hits { - @optionRow(hit.Data.(nix.Option)) + if m := convertMatch[nix.Option](hit.Data); m != nil { + @optionRow(*m) + } } -- cgit 1.4.1