Skip to content

Commit

Permalink
Merge pull request #1853 from ResearchHub/optimize
Browse files Browse the repository at this point in the history
Ensure institutions key is set
  • Loading branch information
yattias authored Sep 30, 2024
2 parents 75fe06f + a75fbb0 commit 99125e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Author/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const parseFullAuthorProfile = (raw: any): FullAuthorProfile => {
worksCount: activity.works_count,
citationCount: activity.citation_count,
})),
institutions: raw.institutions.map((inst) => {
institutions: (raw.institutions || []).map((inst) => {
return {
id: inst.id,
institution: parseInstitution(inst.institution),
Expand Down

0 comments on commit 99125e1

Please sign in to comment.