mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Reset the zoom before destroying the chart.
This commit is contained in:
parent
d4657dcd32
commit
b804f7db03
@ -102,6 +102,7 @@ export default function BaseChart({type='line', id, options, data, redraw=false,
|
||||
};
|
||||
|
||||
const destroyChart = function() {
|
||||
chartObj.current?.resetZoom?.();
|
||||
chartObj.current && chartObj.current.destroy();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user