sort in leaderboard correction
This commit is contained in:
parent
3258aa2fd5
commit
6e54e070d0
@ -34,7 +34,7 @@ const Leaderboard = (props) => {
|
|||||||
const getMetricIndex = (metricName) => {
|
const getMetricIndex = (metricName) => {
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (let evaluation of entriesFromApi[0].evaluations) {
|
for (let evaluation of entriesFromApi[0].evaluations) {
|
||||||
if (evaluation.test.metric === metricName) {
|
if (`${evaluation.test.metric}.${evaluation.test.name}` === metricName) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
Loading…
Reference in New Issue
Block a user