Skip to content

Commit

Permalink
[explorev2] moving the "Time" section up to 2nd section (#1885)
Browse files Browse the repository at this point in the history
This keeps the same section ordering as in v1.
  • Loading branch information
mistercrunch authored Jan 3, 2017
1 parent a0d103d commit 8924bb7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions superset/assets/javascripts/explorev2/stores/visTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 8924bb7

Please sign in to comment.