From 9d19d10f5444a8755a40ea642dd4c50b6f3ac571 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Fri, 23 Jan 2026 12:52:49 +0100 Subject: [PATCH] fix: correct nil check when assigning default values --- layouts/_partials/utilities/InitArgs.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_partials/utilities/InitArgs.html b/layouts/_partials/utilities/InitArgs.html index 56e0897..28c16ce 100644 --- a/layouts/_partials/utilities/InitArgs.html +++ b/layouts/_partials/utilities/InitArgs.html @@ -203,7 +203,7 @@ {{/* add missing keys with default values (nested one level deep) or empty slice */}} {{ range $key, $val := $types.types }} {{ $check := index $params $key }} - {{ if not $check }} + {{ if eq $check nil }} {{ $udt := index $types.udt $key }} {{ $check1 := index $val "config" }} {{ $check2 := index $val "default" }}