Skip to content

Commit 8b8c31e

Browse files
committed
OpenConceptLab/ocl_issues#2298 | group by algo and sort by quality
1 parent 9f3bb23 commit 8b8c31e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/map-projects/Candidates.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ const Candidates = ({rowIndex, alert, setAlert, candidates, setShowItem, showIte
312312

313313
const byScore = sortBy.includes('score')
314314
const noCandidatesFound = !isLoading && !isNoneLoaded && allCandidates.length === 0
315-
const algoScoreFirst = groupBy === 'algorithm' || sortBy === 'search_meta.search_score'
315+
const algoScoreFirst = sortBy === 'search_meta.search_score'
316316
let props = {
317317
rowIndex: rowIndex,
318318
onMap: onMap,
@@ -335,7 +335,6 @@ const Candidates = ({rowIndex, alert, setAlert, candidates, setShowItem, showIte
335335
const onSort = option => {
336336
if(option === sortBy || option === 'search_meta.search_normalized_score') {
337337
setSortBy('search_meta.search_normalized_score')
338-
setGroupBy('quality')
339338
} else if(option === 'search_meta.search_score') {
340339
setSortBy(option)
341340
setGroupBy('algorithm')
@@ -356,7 +355,6 @@ const Candidates = ({rowIndex, alert, setAlert, candidates, setShowItem, showIte
356355
if(!option || option === 'quality')
357356
setSortBy('search_meta.search_normalized_score')
358357
}
359-
360358
const getCandidates = () => {
361359
const order = byScore ? 'desc' : 'asc'
362360
if(groupBy === 'algorithm') {

0 commit comments

Comments
 (0)