Commit 8eeba445 authored by Ale's avatar Ale

fix: Fix map legend filters

parent ff6033d4
......@@ -323,7 +323,6 @@ const init_legend = function(items)
*/
const check_items = function()
{
console.log( categories );
// If there's a selected timeline item, deselect it
var selected = document.querySelector('.selected');
if(selected) selected.classList.remove('selected');
......@@ -335,7 +334,7 @@ const check_items = function()
item_displays.forEach( d => { d.classList.remove('hidden') });
Object.keys(categories[category].terms).forEach(id =>
{
if( categories[category].terms[id] && item.terms.includes(id) ){
if( categories[category].terms[id] && item.terms.includes( slugify(id).toLowerCase() ) ){
is_visible = true;
return;
}
......
Markdown is supported
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