From da7de66585ac8d3d5eb036f33f3733890997895d Mon Sep 17 00:00:00 2001 From: ali asaria Date: Fri, 21 Jun 2024 11:38:55 -0400 Subject: [PATCH] fix potential error if template is missing --- .../components/Experiment/Train/TraningModalDataTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/Experiment/Train/TraningModalDataTab.tsx b/src/renderer/components/Experiment/Train/TraningModalDataTab.tsx index 8f41c3eb..1936d246 100644 --- a/src/renderer/components/Experiment/Train/TraningModalDataTab.tsx +++ b/src/renderer/components/Experiment/Train/TraningModalDataTab.tsx @@ -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}