mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
[explorev2] moving the "Time" section up to 2nd section (#1885)
This keeps the same section ordering as in v1.
This commit is contained in:
committed by
GitHub
parent
a0d103dac3
commit
8924bb79e7
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user