Skip to content

Commit

Permalink
🔨 fix the mdim edit hack
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Nov 4, 2024
1 parent 93a8f26 commit e98739a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/multiDim/MultiDimDataPageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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])
Expand Down Expand Up @@ -372,6 +373,7 @@ export const MultiDimDataPageContent = ({
{...grapherConfigComputed}
queryStr={queryStr}
getGrapherInstance={setGrapherInst}
adminBaseUrl={ADMIN_BASE_URL}
/>
</figure>
</div>
Expand Down

0 comments on commit e98739a

Please sign in to comment.