mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 17:58:27 +02: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.type === 'str'
|
||||||
? initialArg?.value.text
|
? initialArg?.value.text
|
||||||
: // TODO: Implement variable-based args
|
: // TODO: Implement variable-based args
|
||||||
'__NULL__';
|
undefined;
|
||||||
initial[arg.name] = initialArgValue ?? DYNAMIC_FORM_NULL_ARG;
|
initial[arg.name] = initialArgValue ?? arg.defaultValue ?? DYNAMIC_FORM_NULL_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
return initial;
|
return initial;
|
||||||
|
|||||||
Reference in New Issue
Block a user