Skip to content

Commit

Permalink
🚧 (test) bake full graphers
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Aug 20, 2024
1 parent b479a3c commit dd3e6e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions site/DataPageV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ export const DataPageV2 = (props: {
}

// We bake the Grapher config without defaults
const grapherConfigToBake = diffGrapherConfigs(
grapherConfig,
defaultGrapherConfig
)
// const grapherConfigToBake = diffGrapherConfigs(
// grapherConfig,
// defaultGrapherConfig
// )
const grapherConfigToBake = grapherConfig

// Only embed the tags that are actually used by the datapage, instead of the complete JSON object with ~240 properties
const minimalTagToSlugMap = pick(
Expand Down
3 changes: 2 additions & 1 deletion site/GrapherPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export const GrapherPage = (props: {
const imageHeight = "628"

// We bake the Grapher config without defaults
const grapherToBake = diffGrapherConfigs(grapher, defaultGrapherConfig)
// const grapherToBake = diffGrapherConfigs(grapher, defaultGrapherConfig)
const grapherToBake = grapher

const script = `const jsonConfig = ${serializeJSONForHTML({
...grapherToBake,
Expand Down

0 comments on commit dd3e6e5

Please sign in to comment.