From 6807e032a7e3b25d9a73f196de9556568332d8a2 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Mon, 4 Jul 2022 16:21:05 +0200 Subject: [PATCH] dataviz: fix jquery element presence test (#66947) --- combo/apps/dataviz/static/js/chartngcell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/apps/dataviz/static/js/chartngcell.js b/combo/apps/dataviz/static/js/chartngcell.js index 71cf3b4f..99fc71ba 100644 --- a/combo/apps/dataviz/static/js/chartngcell.js +++ b/combo/apps/dataviz/static/js/chartngcell.js @@ -1,6 +1,6 @@ function get_graph_querystring(extra_context, width=undefined) { qs = []; - if ($('#chart-filters')) { + if ($('#chart-filters').length) { qs.push($('#chart-filters').serialize()); qs.push('filters_cell_id=' + $('body').data('filters-cell-id')); }