From 79f6b4670a15f4440a2c6cf0f38b7a19a69c1f8a Mon Sep 17 00:00:00 2001
From: Ere Maijala <ere.maijala@helsinki.fi>
Date: Tue, 15 Jun 2021 12:43:47 +0300
Subject: [PATCH] Clear the visual facets container when initializing to get
 rid of JS and browser update messages.

---
 themes/bootstrap3/js/visual_facets.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/themes/bootstrap3/js/visual_facets.js b/themes/bootstrap3/js/visual_facets.js
index 56cc96558a9..fb1765393f5 100644
--- a/themes/bootstrap3/js/visual_facets.js
+++ b/themes/bootstrap3/js/visual_facets.js
@@ -66,6 +66,7 @@ function settitle() {
 
 function showVisualFacets(pivotdata) {
   if (!d3.select("#visualResults").empty()) {
+    $('#visualResults').html('');
     $('.limitSelect').css('display', 'none');
     $('.sortSelector').css('display', 'none');
     $('.pagination').css('display', 'none');
-- 
GitLab