Add the count to the facet distribution

This commit is contained in:
Kerollmops 2021-01-26 14:14:37 +01:00
parent 4b9e81fc89
commit 7be275b692
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 46 additions and 22 deletions

View file

@ -57,7 +57,7 @@ $('#query, #filters').on('input', function () {
}
// Create the newly discovered facets
let diff = diffArray(data.facets[facet_name], selected_values);
let diff = diffArray(Object.keys(data.facets[facet_name]), selected_values);
for (value of diff) {
let option = $('<option></option>')
.text(value)