Skip to content

Commit

Permalink
new itemsjs version. fixed severe security issues with babel
Browse files Browse the repository at this point in the history
  • Loading branch information
cigolpl committed Apr 17, 2023
1 parent 937e088 commit 736b024
Show file tree
Hide file tree
Showing 5 changed files with 663 additions and 1,669 deletions.
4 changes: 2 additions & 2 deletions dist/itemsjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -20665,9 +20665,9 @@ var getBuckets = function getBuckets(data, input, aggregations) {
filters = input.filters[k];
}

var doc_count = v2[1].array().length;
var doc_count = v2[1].array().length; //hide zero_doc_count facet only if it is not selected

if (hide_zero_doc_count && doc_count === 0) {
if (hide_zero_doc_count && doc_count === 0 && filters.indexOf(v2[0]) === -1) {
return;
}

Expand Down
51 changes: 50 additions & 1 deletion dist/itemsjs.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 736b024

Please sign in to comment.