diff --git a/site/blocks/RelatedCharts.tsx b/site/blocks/RelatedCharts.tsx index 62faa6618de..2c49649789a 100644 --- a/site/blocks/RelatedCharts.tsx +++ b/site/blocks/RelatedCharts.tsx @@ -42,7 +42,24 @@ export const RelatedCharts = ({ useEmbedChart(activeChartIdx, refChartContainer) - return ( + const singleChartView = ( +
+
+
+
+
+
+
+ ) + + const multipleChartsView = (
@@ -91,6 +108,8 @@ export const RelatedCharts = ({
) + + return charts.length === 1 ? singleChartView : multipleChartsView } export const runRelatedCharts = (charts: RelatedChart[]) => {