From ef288050426fc5acdf0a4bedc0aa8de6d6d5e4f4 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Wed, 1 Apr 2026 08:09:01 -0700 Subject: [PATCH] Fix template type error on SSO clients page {{if not .Clients}} fails when .Clients is a non-nil empty slice because Go templates expect a bool operand for 'not'. Use {{if eq (len .Clients) 0}} instead. Co-Authored-By: Claude Opus 4.6 (1M context) --- web/templates/sso_clients.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/templates/sso_clients.html b/web/templates/sso_clients.html index a328d6d..fec6b62 100644 --- a/web/templates/sso_clients.html +++ b/web/templates/sso_clients.html @@ -49,6 +49,6 @@ {{end}} - {{if not .Clients}}

No SSO clients registered.

{{end}} + {{if eq (len .Clients) 0}}

No SSO clients registered.

{{end}} {{end}}