@@ -182,14 +185,11 @@ export const DataPageV2Content = ({
-
- )
-}
+ );
+};
export const hydrateDataPageV2Content = (isPreviewing?: boolean) => {
- const wrapper = document.querySelector(`#${OWID_DATAPAGE_CONTENT_ROOT_ID}`)
- const props: DataPageV2ContentFields = window._OWID_DATAPAGEV2_PROPS
- const grapherConfig = window._OWID_GRAPHER_CONFIG
+ const wrapper = document.querySelector(`#${OWID_DATAPAGE_CONTENT_ROOT_ID}`);
+ const props: DataPageV2ContentFields = window._OWID_DATAPAGEV2_PROPS;
+ const grapherConfig = window._OWID_GRAPHER_CONFIG;
ReactDOM.hydrate(
@@ -289,5 +289,5 @@ export const hydrateDataPageV2Content = (isPreviewing?: boolean) => {
/>
,
wrapper
- )
-}
+ );
+};
diff --git a/site/GrapherPage.tsx b/site/GrapherPage.tsx
index c5c3929fc2..f7cb15dfbe 100644
--- a/site/GrapherPage.tsx
+++ b/site/GrapherPage.tsx
@@ -1,4 +1,5 @@
import {
+ FetchingGrapher,
getVariableDataRoute,
getVariableMetadataRoute,
GRAPHER_PAGE_BODY_CLASS,
@@ -111,12 +112,12 @@ window.Grapher.renderSingleGrapherOnGrapherPage(jsonConfig)`
-
-
-
+
{grapher.slug && (