Reset the zoom to original when chart object is created. Fixed an error on Windows.
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