From e98739ae0ae55440632f387e6ab852eb23aa2ce9 Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Mon, 4 Nov 2024 10:51:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20fix=20the=20mdim=20edit=20hack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/multiDim/MultiDimDataPageContent.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/multiDim/MultiDimDataPageContent.tsx b/site/multiDim/MultiDimDataPageContent.tsx index 38f3c38b44..de939e07a8 100644 --- a/site/multiDim/MultiDimDataPageContent.tsx +++ b/site/multiDim/MultiDimDataPageContent.tsx @@ -28,7 +28,7 @@ import { } from "@ourworldindata/utils" import cx from "classnames" import { DebugProvider } from "../gdocs/DebugContext.js" -import { DATA_API_URL } from "../../settings/clientSettings.js" +import { ADMIN_BASE_URL, DATA_API_URL } from "../../settings/clientSettings.js" import { MultiDimDataPageProps, MultiDimDimensionChoices, @@ -286,6 +286,7 @@ export const MultiDimDataPageContent = ({ // share menu work. This should be removed before we publish MDims! manager: { canonicalUrl, + editUrl: `variables/${varGrapherConfig?.dimensions?.[0]?.variableId}/config`, }, } as GrapherProgrammaticInterface }, [varGrapherConfig, grapherConfigIsReady, bounds, canonicalUrl]) @@ -372,6 +373,7 @@ export const MultiDimDataPageContent = ({ {...grapherConfigComputed} queryStr={queryStr} getGrapherInstance={setGrapherInst} + adminBaseUrl={ADMIN_BASE_URL} />