Skip to content
Snippets Groups Projects
Commit 7064c71d authored by ali asaria's avatar ali asaria
Browse files

try catch

parent 56a7aa48
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,12 @@ export default function NewNodeModal({ ...@@ -38,7 +38,12 @@ export default function NewNodeModal({
isLoading: isLoading, isLoading: isLoading,
} = useSWR(chatAPI.GET_TRAINING_TEMPLATE_URL(), fetcher); } = useSWR(chatAPI.GET_TRAINING_TEMPLATE_URL(), fetcher);
const evaluationData = JSON.parse(experimentInfo?.config?.evaluations); let evaluationData = [];
try {
evaluationData = JSON.parse(experimentInfo?.config?.evaluations);
} catch (error) {
console.error('Failed to parse evaluation data:', error);
}
const handleModeChange = (event: any, newValue: string) => { const handleModeChange = (event: any, newValue: string) => {
setMode(newValue); setMode(newValue);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment