Skip to content

Commit

Permalink
🔨 (grapher) remove DEFAULT_GRAPHER_CONFIG_SCHEMA
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Aug 7, 2024
1 parent a18a263 commit cdf1f6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions db/model/Variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
getVariableDataRoute,
getVariableMetadataRoute,
defaultGrapherConfig,
DEFAULT_GRAPHER_CONFIG_SCHEMA,
} from "@ourworldindata/grapher"
import pl from "nodejs-polars"
import { uuidv7 } from "uuidv7"
Expand Down Expand Up @@ -171,7 +170,7 @@ function makeConfigValidForIndicator({

// if no schema is given, assume it's the latest
if (!updatedConfig.$schema) {
updatedConfig.$schema = DEFAULT_GRAPHER_CONFIG_SCHEMA
updatedConfig.$schema = defaultGrapherConfig.$schema
}

// check if the given dimensions are correct
Expand Down
1 change: 0 additions & 1 deletion packages/@ourworldindata/grapher/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export {
grapherInterfaceWithHiddenTabsOnly,
CONTINENTS_INDICATOR_ID,
POPULATION_INDICATOR_ID_USED_IN_ADMIN,
DEFAULT_GRAPHER_CONFIG_SCHEMA,
} from "./core/GrapherConstants"
export {
getVariableDataRoute,
Expand Down

0 comments on commit cdf1f6d

Please sign in to comment.