Various fixes (#20655)

This commit is contained in:
Nicolas Mowen
2025-10-24 15:38:35 -06:00
committed by GitHub
parent eb51eb3c9d
commit 83fa651ada
2 changed files with 5 additions and 3 deletions

View File

@@ -214,7 +214,9 @@ export function GroupedClassificationCard({
});
if (!best) {
return group.at(-1);
// select an item from the middle of the time series as this usually correlates
// to a more representative image than the first or last
return group.at(Math.floor(group.length / 2));
}
const bestTyped: ClassificationItemData = best;