From 1142f534957f5a5241d7f69f2d4658b0a99a19dd Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Thu, 8 Feb 2024 09:59:44 +0100 Subject: [PATCH] fix: results export in evaluation scenario --- .../evaluations/evaluationScenarios/EvaluationScenarios.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agenta-web/src/components/pages/evaluations/evaluationScenarios/EvaluationScenarios.tsx b/agenta-web/src/components/pages/evaluations/evaluationScenarios/EvaluationScenarios.tsx index 884d1f4803..3cc11488c0 100644 --- a/agenta-web/src/components/pages/evaluations/evaluationScenarios/EvaluationScenarios.tsx +++ b/agenta-web/src/components/pages/evaluations/evaluationScenarios/EvaluationScenarios.tsx @@ -99,7 +99,7 @@ const EvaluationScenarios: React.FC = () => { cellRenderer: LongTextCellRenderer, }) }) - scenarios[0]?.evaluators_configs.forEach((config) => { + scenarios[0]?.evaluators_configs.forEach((config, index) => { colDefs.push({ headerName: config.name, headerComponent: (props: any) => { @@ -120,6 +120,9 @@ const EvaluationScenarios: React.FC = () => { cellRendererParams: { config, }, + valueGetter: (params) => { + return params.data?.results[index].result.value + }, }) }) return colDefs