[explorev2] moving the "Time" section up to 2nd section (#1885)

This keeps the same section ordering as in v1.
This commit is contained in:
Maxime Beauchemin
2017-01-03 14:18:55 -08:00
committed by GitHub
parent a0d103dac3
commit 8924bb79e7

View File

@@ -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;
}