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;