diff --git a/superset/assets/javascripts/explorev2/stores/visTypes.js b/superset/assets/javascripts/explorev2/stores/visTypes.js index 75ce9b2fb03c9..819975c71d688 100644 --- a/superset/assets/javascripts/explorev2/stores/visTypes.js +++ b/superset/assets/javascripts/explorev2/stores/visTypes.js @@ -714,8 +714,12 @@ export function sectionsToRender(vizType, datasourceType) { const timeSection = datasourceType === 'table' ? commonControlPanelSections.sqlaTimeSeries : commonControlPanelSections.druidTimeSeries; const { datasourceAndVizType, sqlClause } = commonControlPanelSections; - const sections = [datasourceAndVizType].concat( - viz.controlPanelSections, timeSection, sqlClause); + const sections = [].concat( + datasourceAndVizType, + timeSection, + viz.controlPanelSections, + sqlClause + ); return sections; }