fix: add explore control tabOverride at the section level (#9495)

This commit is contained in:
Jianchao Yang 2020-04-08 18:26:53 -07:00 committed by GitHub
parent 36cd5411d0
commit 5565895819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -198,7 +198,10 @@ class ControlPanelsContainer extends React.Component {
const querySectionsToRender = [];
const displaySectionsToRender = [];
allSectionsToRender.forEach(section => {
// if at least one control in the secion is not `renderTrigger`
// or asks to be displayed at the Data tab
if (
section.tabOverride === 'data' ||
section.controlSetRows.some(rows =>
rows.some(
control =>

View File

@ -29,6 +29,7 @@ export default {
},
{
label: t('Options'),
tabOverride: 'data',
expanded: true,
controlSetRows: [
[