Skip to content

Commit

Permalink
fix potential error if template is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
aliasaria committed Jun 21, 2024
1 parent df9a022 commit da7de66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default function TrainingModalDataTab({
id="formatting_template"
defaultValue={
templateData
? templateData.config.formatting_template
? templateData?.config?.formatting_template
: 'Instruction: {{instruction}}\nPrompt: {{prompt}}\nGeneration: {{generation}}'
}
rows={5}
Expand Down

0 comments on commit da7de66

Please sign in to comment.