diff --git a/db/model/Variable.ts b/db/model/Variable.ts index b9020fe79d7..22b54e6bf89 100644 --- a/db/model/Variable.ts +++ b/db/model/Variable.ts @@ -11,7 +11,6 @@ import { getVariableDataRoute, getVariableMetadataRoute, defaultGrapherConfig, - DEFAULT_GRAPHER_CONFIG_SCHEMA, } from "@ourworldindata/grapher" import pl from "nodejs-polars" import { uuidv7 } from "uuidv7" @@ -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 diff --git a/packages/@ourworldindata/grapher/src/index.ts b/packages/@ourworldindata/grapher/src/index.ts index ed27bd627f5..9e9d08b9902 100644 --- a/packages/@ourworldindata/grapher/src/index.ts +++ b/packages/@ourworldindata/grapher/src/index.ts @@ -26,7 +26,6 @@ export { grapherInterfaceWithHiddenTabsOnly, CONTINENTS_INDICATOR_ID, POPULATION_INDICATOR_ID_USED_IN_ADMIN, - DEFAULT_GRAPHER_CONFIG_SCHEMA, } from "./core/GrapherConstants" export { getVariableDataRoute,