Skip to content

Commit

Permalink
Merge pull request #1350 from Agenta-AI/issue-1348/-evaluation-scenar…
Browse files Browse the repository at this point in the history
…io-results-are-not-exported-correctly

FIX: Evaluation scenario results are not exported correctly
  • Loading branch information
aakrem authored Feb 8, 2024
2 parents 06c818e + 1142f53 commit c34fe59
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const EvaluationScenarios: React.FC<Props> = () => {
cellRenderer: LongTextCellRenderer,
})
})
scenarios[0]?.evaluators_configs.forEach((config) => {
scenarios[0]?.evaluators_configs.forEach((config, index) => {
colDefs.push({
headerName: config.name,
headerComponent: (props: any) => {
Expand All @@ -120,6 +120,9 @@ const EvaluationScenarios: React.FC<Props> = () => {
cellRendererParams: {
config,
},
valueGetter: (params) => {
return params.data?.results[index].result.value
},
})
})
return colDefs
Expand Down

0 comments on commit c34fe59

Please sign in to comment.