From a477b10109bed6370db659a72a6358210e04bb88 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 17 Jan 2025 16:07:13 -0800 Subject: [PATCH] Fix default values for template tags --- src-web/components/TemplateFunctionDialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-web/components/TemplateFunctionDialog.tsx b/src-web/components/TemplateFunctionDialog.tsx index 0404816d..28718afc 100644 --- a/src-web/components/TemplateFunctionDialog.tsx +++ b/src-web/components/TemplateFunctionDialog.tsx @@ -30,8 +30,8 @@ export function TemplateFunctionDialog({ templateFunction, hide, initialTokens, initialArg?.value.type === 'str' ? initialArg?.value.text : // TODO: Implement variable-based args - '__NULL__'; - initial[arg.name] = initialArgValue ?? DYNAMIC_FORM_NULL_ARG; + undefined; + initial[arg.name] = initialArgValue ?? arg.defaultValue ?? DYNAMIC_FORM_NULL_ARG; } return initial;