mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
Fix default values for template tags
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user