Reset the zoom to original when chart object is created. Fixed an error on Windows.

This commit is contained in:
Akshay Joshi 2022-06-28 10:25:38 +05:30
parent 76dd163f0e
commit f905dc07cf

View File

@ -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('');
};