From 8924bb79e74704632cc4401f0ed1f7134be11a1d Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 3 Jan 2017 14:18:55 -0800 Subject: [PATCH] [explorev2] moving the "Time" section up to 2nd section (#1885) This keeps the same section ordering as in v1. --- superset/assets/javascripts/explorev2/stores/visTypes.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; }