fix: handle avgMetrics response on individual trials of multi-trial experiment
@@ -430,6 +430,9 @@ export const mapV1ExperimentList = (data: Sdk.V1Experiment[]): types.ExperimentI
const filterNonScalarMetrics = (metrics: RawJson): RawJson | undefined => {
if (!isObject(metrics)) return undefined;
+ if (metrics.avgMetrics) {
+ return filterNonScalarMetrics(metrics.avgMetrics);
+ }
const scalarMetrics: RawJson = {};
for (const key in metrics) {
if ([ 'Infinity', '-Infinity', 'NaN' ].includes(metrics[key])) {
