Skip to content

Commit 78c8378

Browse files
committed
OpenConceptLab/ocl_issues#2298 | fixing refresh button
1 parent 2957b30 commit 78c8378

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/components/map-projects/MapProject.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,19 +1677,22 @@ const MapProject = () => {
16771677
setOtherMatchedConcepts(prev => {
16781678
let newConcepts = {...prev}
16791679
let result = find(newConcepts, c => c.row.__index === rowIndex)
1680-
result.results = null
1680+
if(result)
1681+
result.results = null
16811682
return newConcepts
16821683
})
16831684
setBridgeCandidates(prev => {
16841685
let newConcepts = {...prev}
16851686
let result = find(newConcepts, c => c.row.__index === rowIndex)
1686-
result.results = null
1687+
if(result)
1688+
result.results = null
16871689
return newConcepts
16881690
})
16891691
setScispacyCandidates(prev => {
16901692
let newConcepts = {...prev}
16911693
let result = find(newConcepts, c => c.row.__index === rowIndex)
1692-
result.results = null
1694+
if(result)
1695+
result.results = null
16931696
return newConcepts
16941697
})
16951698
fetchOtherCandidates(row, 0, undefined, undefined, undefined, true)

0 commit comments

Comments
 (0)