@@ -79,8 +79,7 @@ function hydrateDataInsightsIndexPage() {
79
79
80
80
function hydrateDataPageV2Content ( {
81
81
isPreviewing,
82
- runtimeAssetMap,
83
- } : { isPreviewing ?: boolean ; runtimeAssetMap ?: AssetMap } = { } ) {
82
+ } : { isPreviewing ?: boolean } = { } ) {
84
83
const wrapper = document . querySelector ( `#${ OWID_DATAPAGE_CONTENT_ROOT_ID } ` )
85
84
const props : DataPageV2ContentFields = window . _OWID_DATAPAGEV2_PROPS
86
85
const grapherConfig = window . _OWID_GRAPHER_CONFIG
@@ -91,7 +90,6 @@ function hydrateDataPageV2Content({
91
90
{ ...props }
92
91
grapherConfig = { grapherConfig }
93
92
isPreviewing = { isPreviewing }
94
- runtimeAssetMap = { runtimeAssetMap }
95
93
/>
96
94
</ DebugProvider > ,
97
95
wrapper
@@ -272,25 +270,23 @@ export const runSiteFooterScripts = (
272
270
context ?: SiteFooterContext
273
271
container ?: HTMLElement
274
272
hideDonationFlag ?: boolean
275
- runtimeAssetMap ?: AssetMap
276
273
}
277
274
| undefined
278
275
) => {
279
276
// We used to destructure this in the function signature, but that caused
280
277
// a weird issue reported by bugsnag: https://app.bugsnag.com/our-world-in-data/our-world-in-data-website/errors/63ca39b631e8660009464eb4?event_id=63d384c500acc25fc0810000&i=sk&m=ef
281
278
// So now we define the object as potentially undefined and then destructure it here.
282
- const { debug, context, isPreviewing, hideDonationFlag, runtimeAssetMap } =
283
- args || { }
279
+ const { debug, context, isPreviewing, hideDonationFlag } = args || { }
284
280
285
281
switch ( context ) {
286
282
case SiteFooterContext . dataPageV2 :
287
- hydrateDataPageV2Content ( { isPreviewing, runtimeAssetMap } )
283
+ hydrateDataPageV2Content ( { isPreviewing } )
288
284
runAllGraphersLoadedListener ( )
289
285
runLightbox ( )
290
286
runSiteNavigation ( BAKED_BASE_URL , hideDonationFlag )
291
287
runSiteTools ( )
292
288
runCookiePreferencesManager ( )
293
- void runDetailsOnDemand ( { runtimeAssetMap } )
289
+ void runDetailsOnDemand ( )
294
290
break
295
291
case SiteFooterContext . multiDimDataPage :
296
292
hydrateMultiDimDataPageContent ( isPreviewing )
@@ -299,15 +295,15 @@ export const runSiteFooterScripts = (
299
295
runSiteNavigation ( BAKED_BASE_URL , hideDonationFlag )
300
296
runSiteTools ( )
301
297
runCookiePreferencesManager ( )
302
- void runDetailsOnDemand ( { runtimeAssetMap } )
298
+ void runDetailsOnDemand ( )
303
299
break
304
300
case SiteFooterContext . grapherPage :
305
301
case SiteFooterContext . explorerPage :
306
302
runSiteNavigation ( BAKED_BASE_URL , hideDonationFlag )
307
303
runAllGraphersLoadedListener ( )
308
304
runSiteTools ( )
309
305
runCookiePreferencesManager ( )
310
- void runDetailsOnDemand ( { runtimeAssetMap } )
306
+ void runDetailsOnDemand ( )
311
307
break
312
308
case SiteFooterContext . explorerIndexPage :
313
309
hydrateExplorerIndex ( )
@@ -320,7 +316,7 @@ export const runSiteFooterScripts = (
320
316
runAllGraphersLoadedListener ( )
321
317
runSiteNavigation ( BAKED_BASE_URL , hideDonationFlag )
322
318
runFootnotes ( )
323
- void runDetailsOnDemand ( { runtimeAssetMap } )
319
+ void runDetailsOnDemand ( )
324
320
runLightbox ( )
325
321
runSiteTools ( )
326
322
runCookiePreferencesManager ( )
@@ -356,7 +352,7 @@ export const runSiteFooterScripts = (
356
352
runFootnotes ( )
357
353
runSiteTools ( )
358
354
runCookiePreferencesManager ( )
359
- void runDetailsOnDemand ( { runtimeAssetMap } )
355
+ void runDetailsOnDemand ( )
360
356
break
361
357
}
362
358
}
0 commit comments