From cdf1f6d552e68e65e08d086faf891e64b1d8af76 Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Wed, 7 Aug 2024 11:07:23 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20(grapher)=20remove=20DEFAULT=5FG?= =?UTF-8?q?RAPHER=5FCONFIG=5FSCHEMA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/model/Variable.ts | 3 +-- packages/@ourworldindata/grapher/src/index.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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,