Skip to content

Commit

Permalink
fix(openalex): Display added RORs
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Nov 22, 2024
1 parent bbe44cd commit e49b0b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/pages/openalex-ror/results/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function Affiliations() {
const selectedOpenAlexTmp = selectedOpenAlex.map((item) => {
const rorsToCorrect = [...item.rorsToCorrect, ...rorsToAdd].map((rorToCorrect) => ({
...rorToCorrect,
action: removeList.includes(rorToCorrect.rorId) ? 'remove' : undefined,
action: removeList.includes(rorToCorrect.rorId) ? 'remove' : rorToCorrect?.action,
}));
const hasCorrection = rorsToCorrect.filter((rorToCorrect) => rorToCorrect?.action).length > 0;
return { ...item, hasCorrection, rorsToCorrect };
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/openalex-ror/results/list-view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export default function ListView({
<Row>
<Col>
<div style={{ display: 'inline-flex' }}>

<div style={{ display: 'inline-block', width: '20px' }}>
<input
id={`affiliation-${affiliation.key}`}
Expand Down Expand Up @@ -110,6 +109,7 @@ export default function ListView({
}
ror={rorToCorrect}
/>
<span className="fr-icon-chat-check-fill fr-icon--sm fr-ml-1w" style={{ color: '#B34000' }} />
</td>
</tr>
))}
Expand Down

0 comments on commit e49b0b5

Please sign in to comment.