From e9c0ab544c00d225d965ad2f27e3539c58c9eacc Mon Sep 17 00:00:00 2001 From: Simon Guilbault Date: Tue, 4 Jun 2024 14:11:31 +0000 Subject: [PATCH] Only redraw the graph if the filter is not null --- static/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/custom.js b/static/custom.js index 34252cd..3aff744 100644 --- a/static/custom.js +++ b/static/custom.js @@ -62,8 +62,8 @@ function loadGraph(container, url){ new_data.push(trace); } } + Plotly.newPlot(gd, new_data, content['layout'], content['config']); } - Plotly.newPlot(gd, new_data, content['layout'], content['config']); }); } }