Fixed module import issue.

refs #7506
This commit is contained in:
Yogesh Mahajan
2022-06-28 11:28:55 +05:30
committed by Akshay Joshi
parent f905dc07cf
commit d4657dcd32
4 changed files with 32 additions and 15 deletions

View File

@@ -253,6 +253,10 @@ export function GraphVisualiser({initColumns}) {
const onGenerate = async ()=>{
setLoaderText(gettext('Fetching all the records...'));
if (graphData?.datasets?.length > 0) {
onResetZoom();
}
let url = url_for('sqleditor.fetch_all_from_start', {
'trans_id': queryToolCtx.params.trans_id,
'limit': queryToolCtx.preferences.sqleditor.row_limit
@@ -266,7 +270,6 @@ export function GraphVisualiser({initColumns}) {
getGraphDataSet(res.data.data.result, columns, xaxis, yaxis, queryToolCtx)
);
onResetZoom();
setLoaderText('');
};