diff --git a/layouts/_partials/utilities/InitArgs.html b/layouts/_partials/utilities/InitArgs.html index 28c16ce..f4a8cb9 100644 --- a/layouts/_partials/utilities/InitArgs.html +++ b/layouts/_partials/utilities/InitArgs.html @@ -187,8 +187,7 @@ {{ end }} {{ if and (not $skip) (not $val.optional) }} - {{ $check := index $namedargs $key }} - {{ if not $check }} + {{ if not (isset $namedargs $key) }} {{ $errmsg = $errmsg | append (printf "[%s] argument '%s': expected value" (or $structure $bookshop) $key) }} {{ $error = true }} {{ end }}