Skip to content

Commit 3b38721

Browse files
committed
OpenConceptLab/ocl_issues#2308 | refresh candidates must not consider recommend
1 parent 03504ae commit 3b38721

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/map-projects/Candidates.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import compact from 'lodash/compact'
4040
import every from 'lodash/every'
4141
import times from 'lodash/times'
4242
import filter from 'lodash/filter'
43+
import omit from 'lodash/omit'
4344

4445
import { highlightTexts } from '../../common/utils';
4546
import { PRIMARY_COLORS } from '../../common/colors'
@@ -307,7 +308,8 @@ const Candidates = ({rowIndex, alert, setAlert, candidates, setShowItem, showIte
307308
const isNoneLoaded = every(rawResults, r => r === null)
308309
const canFetchMore = allCandidates?.length > 0
309310
let AIRecommendedCandidateId = get(analysis, 'primary_candidate.concept_id')
310-
const areAlgoRun = uniq(values(rowStage)).length === 1 && values(rowStage)[0] === 1
311+
const algoStagesValue = values(omit(rowStage, 'recommend'))
312+
const areAlgoRun = uniq(algoStagesValue).length === 1 && algoStagesValue[0] === 1
311313
const { label } = getRowProgressLabel(rowStage, algosSelected);
312314

313315
const byScore = sortBy.includes('score')

0 commit comments

Comments
 (0)