From 4ac00a09543d5c002a37b76a71dead9d360e104a Mon Sep 17 00:00:00 2001 From: Agata Stawarz <47450693+agatapst@users.noreply.github.com> Date: Wed, 23 Dec 2020 12:06:08 +0100 Subject: [PATCH] fix(chart): rendering standalone chart and errors (#12179) --- .../src/explore/components/ExploreChartPanel.jsx | 5 ++--- .../src/explore/components/ExploreViewContainer.jsx | 2 ++ superset/templates/superset/basic.html | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/superset-frontend/src/explore/components/ExploreChartPanel.jsx b/superset-frontend/src/explore/components/ExploreChartPanel.jsx index 088ee1a0f..d59f05e7e 100644 --- a/superset-frontend/src/explore/components/ExploreChartPanel.jsx +++ b/superset-frontend/src/explore/components/ExploreChartPanel.jsx @@ -172,9 +172,8 @@ const ExploreChartPanel = props => { return ( - {({ width, height }) => - width > 0 && - height > 0 && ( + {({ width }) => + width > 0 && ( {% block tail_js %} - {{ js_bundle('menu') }} + {% if not standalone_mode %} + {{ js_bundle('menu') }} + {% endif %} {% if entry %} {{ js_bundle(entry) }} {% endif %}