Skip to content

Commit

Permalink
Dedupe linkedAuthors in DataInsightsIndexPageContent
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyi committed Jul 26, 2024
1 parent 7527f17 commit bda9ac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/DataInsightsIndexPageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
OwidGdocMinimalPostInterface,
merge,
LinkedAuthor,
uniqBy,
} from "@ourworldindata/utils"
import {
DataInsightBody,
Expand Down Expand Up @@ -114,7 +115,7 @@ export const DataInsightsIndexPageContent = (
<AttachmentsContext.Provider
value={{
imageMetadata,
linkedAuthors,
linkedAuthors: uniqBy(linkedAuthors, ({ name }) => name),
linkedCharts,
linkedDocuments,
linkedIndicators: {}, // not needed for data insights
Expand Down

0 comments on commit bda9ac3

Please sign in to comment.