5 710
edições
Sem resumo de edição |
Sem resumo de edição |
||
Linha 758: | Linha 758: | ||
if (itemsToFilter.length > 0) { | if (itemsToFilter.length > 0) { | ||
const filteredItems = itemsToFilter.filter(item => { | const filteredItems = itemsToFilter.filter(item => { | ||
const | const hasAllTags = selectedTags.length === 0 || selectedTags.every(tag => item.tags.includes(tag)); | ||
const matchesId = filterById === '' || filterById.split(',').map(id => id.trim()).includes(item.id); | const matchesId = filterById === '' || filterById.split(',').map(id => id.trim()).includes(item.id); | ||
const matchesLocal = selectedOption === '' || item.tags.includes(selectedOption); | const matchesLocal = selectedOption === '' || item.tags.includes(selectedOption); |