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:
Kamil Gabryjelski
2021-02-15 17:05:40 +01:00
committed by GitHub
parent 2dbe92ba2f
commit d0b00bc08f
4 changed files with 38 additions and 36 deletions

View File

@@ -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>