Skip to content

Commit

Permalink
Fix default values for template tags
Browse files Browse the repository at this point in the history
  • Loading branch information
gschier committed Jan 18, 2025
1 parent a221b05 commit a477b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-web/components/TemplateFunctionDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a477b10

Please sign in to comment.