Skip to content

Commit

Permalink
Merge pull request #4447 from owid/download-all-data-on-client
Browse files Browse the repository at this point in the history
✨ download unfiltered data on client
  • Loading branch information
sophiamersmann authored Jan 14, 2025
2 parents d975d8c + 32ee11f commit 7e95bbe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/@ourworldindata/grapher/src/modal/DownloadModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface DownloadModalManager {
staticFormat?: GrapherStaticFormat
baseUrl?: string
queryStr?: string
table?: OwidTable
inputTable?: OwidTable
transformedTable?: OwidTable
tableForDisplay?: OwidTable
yColumnsFromDimensionsOrSlugsOrAuto?: CoreColumn[]
Expand Down Expand Up @@ -751,7 +751,7 @@ export const DownloadModalDataTab = (props: DownloadModalProps) => {
const { yColumnsFromDimensionsOrSlugsOrAuto: yColumns } = props.manager

const { cols: nonRedistributableCols, sourceLinks } =
getNonRedistributableInfo(props.manager.table)
getNonRedistributableInfo(props.manager.inputTable)

// Server-side download is not necessarily available for:
// - Explorers
Expand All @@ -771,7 +771,7 @@ export const DownloadModalDataTab = (props: DownloadModalProps) => {
props.manager.baseUrl ??
`/grapher/${props.manager.displaySlug}`,

fullTable: props.manager.table ?? BlankOwidTable(),
fullTable: props.manager.inputTable ?? BlankOwidTable(),
filteredTable:
(props.manager.isOnTableTab
? props.manager.tableForDisplay
Expand All @@ -783,7 +783,7 @@ export const DownloadModalDataTab = (props: DownloadModalProps) => {
props.manager.displaySlug,
props.manager.queryStr,
props.manager.isOnTableTab,
props.manager.table,
props.manager.inputTable,
props.manager.transformedTable,
props.manager.tableForDisplay,
props.manager.activeColumnSlugs,
Expand Down Expand Up @@ -868,7 +868,7 @@ export const DownloadModalDataTab = (props: DownloadModalProps) => {

return (
<>
<SourceAndCitationSection table={props.manager.table} />
<SourceAndCitationSection table={props.manager.inputTable} />
<div className="download-modal__data-section">
<div className="download-modal__heading-with-caption">
<h3 className="grapher_h3-semibold">Quick download</h3>
Expand Down

0 comments on commit 7e95bbe

Please sign in to comment.