Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
m-casanova authored Aug 19, 2024
1 parent 61ad09b commit 1a37480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Promise.all(fileCaricati)
if (filteredSuggestions.length > 0) {
const suggestionsHtml = filteredSuggestions.map(item => {
const description = category === 1 ? 'Comune' : dizTipo[item.t];
return `<div data-id="${item.io}">${item.n}<br/><span class="info"><span class="f${(db_indice[t][item.io].z == 1)?0:1}">◼</span> ${item.c} ${description}</span></div>`;
return `<div data-id="${item.io}">${item.n}<br/><span class="info"><span class="f${(db_indice[category][item.io].z == 1)?0:1}">◼</span> ${item.c} ${description}</span></div>`;
}).join('');
suggestionsBox.innerHTML = suggestionsHtml;
suggestionsBox.style.display = 'block';
Expand Down

0 comments on commit 1a37480

Please sign in to comment.