Skip to content

Commit

Permalink
Merge pull request #2849 from owid/data-page-improve-fallback-chains
Browse files Browse the repository at this point in the history
✨ improve data page fallback chains
  • Loading branch information
danyx23 authored Oct 25, 2023
2 parents eb22ba8 + 749f85d commit dfbff10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions datapage/Datapage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ export const getDatapageDataV2 = async (
title:
variableMetadata.presentation?.titlePublic ??
partialGrapherConfig.title ??
variableMetadata.display?.name ??
variableMetadata.name ??
"",
descriptionShort:
variableMetadata.descriptionShort ??
partialGrapherConfig.subtitle,
descriptionShort: variableMetadata.descriptionShort,
descriptionFromProducer: variableMetadata.descriptionFromProducer,
attributionShort: variableMetadata.presentation?.attributionShort,
titleVariant: variableMetadata.presentation?.titleVariant,
Expand Down
5 changes: 1 addition & 4 deletions packages/@ourworldindata/grapher/src/modal/SourcesModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ export class SourcesModal extends React.Component<{
maxTime
)}`

const title =
column.def.titlePublic && column.def.titlePublic !== ""
? column.def.titlePublic
: column.name
const title = column.displayName

const retrievedDate =
source.retrievedDate ??
Expand Down

0 comments on commit dfbff10

Please sign in to comment.