fix: properly render booleans in FilterBox and explore page data preview (#12116)

This commit is contained in:
Jesse Yang
2020-12-18 10:40:56 -08:00
committed by GitHub
parent d543ca87fb
commit 8e625e0a64
4 changed files with 59 additions and 22 deletions

View File

@@ -235,28 +235,34 @@ const ExploreChartPanel = props => {
};
};
const panelBody = <div className="panel-body">{renderChart()}</div>;
return (
<Styles className="panel panel-default chart-container">
<div className="panel-heading" ref={panelHeadingRef}>
{header}
</div>
<Split
sizes={splitSizes}
minSize={MIN_SIZES}
direction="vertical"
gutterSize={gutterHeight}
onDragStart={onDragStart}
onDragEnd={onDragEnd}
elementStyle={elementStyle}
>
<div className="panel-body">{renderChart()}</div>
<DataTablesPane
queryFormData={props.chart.latestQueryFormData}
tableSectionHeight={tableSectionHeight}
onCollapseChange={onCollapseChange}
displayBackground={displaySouthPaneBackground}
/>
</Split>
{props.vizType === 'filter_box' ? (
panelBody
) : (
<Split
sizes={splitSizes}
minSize={MIN_SIZES}
direction="vertical"
gutterSize={gutterHeight}
onDragStart={onDragStart}
onDragEnd={onDragEnd}
elementStyle={elementStyle}
>
{panelBody}
<DataTablesPane
queryFormData={props.chart.latestQueryFormData}
tableSectionHeight={tableSectionHeight}
onCollapseChange={onCollapseChange}
displayBackground={displaySouthPaneBackground}
/>
</Split>
)}
</Styles>
);
};