mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-23 23:13:38 -06:00
Reset the zoom to original when chart object is created. Fixed an error on Windows.
This commit is contained in:
parent
76dd163f0e
commit
f905dc07cf
@ -253,8 +253,6 @@ export function GraphVisualiser({initColumns}) {
|
||||
const onGenerate = async ()=>{
|
||||
setLoaderText(gettext('Fetching all the records...'));
|
||||
|
||||
onResetZoom();
|
||||
|
||||
let url = url_for('sqleditor.fetch_all_from_start', {
|
||||
'trans_id': queryToolCtx.params.trans_id,
|
||||
'limit': queryToolCtx.preferences.sqleditor.row_limit
|
||||
@ -268,6 +266,7 @@ export function GraphVisualiser({initColumns}) {
|
||||
getGraphDataSet(res.data.data.result, columns, xaxis, yaxis, queryToolCtx)
|
||||
);
|
||||
|
||||
onResetZoom();
|
||||
setLoaderText('');
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user