about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--internal/components/results.templ5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/components/results.templ b/internal/components/results.templ
index b051219..6d85e16 100644
--- a/internal/components/results.templ
+++ b/internal/components/results.templ
@@ -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
 }