mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
Fixes default hanlding in Altered slice tag (#3903)
This commit is contained in:
committed by
GitHub
parent
4ae77ba8af
commit
1d702f2142
@@ -55,13 +55,6 @@ class ExploreChartHeader extends React.PureComponent {
|
||||
});
|
||||
}
|
||||
|
||||
renderAlteredTag() {
|
||||
const origFormData = (this.props.slice && this.props.slice.form_data) || {};
|
||||
const currentFormData = this.props.form_data;
|
||||
const tagProps = { origFormData, currentFormData };
|
||||
return (<AlteredSliceTag {...tagProps} />);
|
||||
}
|
||||
|
||||
renderChartTitle() {
|
||||
let title;
|
||||
if (this.props.slice) {
|
||||
@@ -113,9 +106,12 @@ class ExploreChartHeader extends React.PureComponent {
|
||||
</TooltipWrapper>
|
||||
</span>
|
||||
}
|
||||
|
||||
{this.renderAlteredTag()}
|
||||
|
||||
{this.props.chart.sliceFormData &&
|
||||
<AlteredSliceTag
|
||||
origFormData={this.props.chart.sliceFormData}
|
||||
currentFormData={this.props.form_data}
|
||||
/>
|
||||
}
|
||||
<div className="pull-right">
|
||||
{this.props.chart.chartStatus === 'success' &&
|
||||
queryResponse &&
|
||||
|
||||
Reference in New Issue
Block a user