Skip to content
Snippets Groups Projects
Commit e239574c authored by Demian Katz's avatar Demian Katz
Browse files

Bug fix: do not zoom without filter set.

parent f0069cae
Branches
Tags
No related merge requests found
...@@ -79,7 +79,7 @@ function loadVis(facetFields, searchParams, baseURL, zooming) { ...@@ -79,7 +79,7 @@ function loadVis(facetFields, searchParams, baseURL, zooming) {
val.max = parseInt(val.data[val.data.length - 1][0], 10) + 5; val.max = parseInt(val.data[val.data.length - 1][0], 10) + 5;
} }
if (zooming) { if (zooming && hasFilter) {
//check the first and last elements of the data array against min and max value (+padding) //check the first and last elements of the data array against min and max value (+padding)
//if the element exists leave it, otherwise create a new marker with a minus one value //if the element exists leave it, otherwise create a new marker with a minus one value
if (val.data[val.data.length - 1][0] !== parseInt(val.max, 10) + 5) { if (val.data[val.data.length - 1][0] !== parseInt(val.max, 10) + 5) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment