From 8071494175e6647b8c6c840e2c9ca205f25bc7eb Mon Sep 17 00:00:00 2001 From: joeuhren <46763106+joeuhren@users.noreply.github.com> Date: Mon, 21 Dec 2020 19:42:17 -0700 Subject: [PATCH] Fix jqPlot error msgs on market page when resizing --- views/market.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/market.pug b/views/market.pug index 3eb90ef..f9904fe 100644 --- a/views/market.pug +++ b/views/market.pug @@ -86,8 +86,8 @@ block content }); } $(window).resize(function () { - if (jqplot != null) - jqplot.replot( { resetAxes: false } ); + if (jqplot != null && $('#chart').is(':visible')) + jqplot.replot({ resetAxes: false }); }); }); .row