mirror of
https://github.com/apache/superset.git
synced 2026-05-11 02:45:46 +00:00
fix: Fix switching viz type to and from Filter box (#13094)
* Fix switching viz_type to and from filter_box * Remove RESET_FIELDS action * Restore removed log * Refactor reducer logic
This commit is contained in:
committed by
GitHub
parent
2dbe92ba2f
commit
d0b00bc08f
@@ -211,12 +211,8 @@ const ExploreChartPanel = props => {
|
||||
}, [calcSectionHeight, chartWidth, props, splitSizes]);
|
||||
|
||||
const panelBody = useMemo(
|
||||
() => (
|
||||
<div className="panel-body" ref={chartRef}>
|
||||
{renderChart()}
|
||||
</div>
|
||||
),
|
||||
[chartRef, renderChart],
|
||||
() => <div className="panel-body">{renderChart()}</div>,
|
||||
[renderChart],
|
||||
);
|
||||
|
||||
const standaloneChartBody = useMemo(
|
||||
@@ -256,7 +252,7 @@ const ExploreChartPanel = props => {
|
||||
});
|
||||
|
||||
return (
|
||||
<Styles className="panel panel-default chart-container">
|
||||
<Styles className="panel panel-default chart-container" ref={chartRef}>
|
||||
<div className="panel-heading" ref={headerRef}>
|
||||
{header}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user