Skip to content

Commit 862aa63

Browse files
committed
fix(ui): improved filtering
1 parent 58c20ec commit 862aa63

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ui/src/components/QIconPicker.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ export default {
5858
if (icons) {
5959
if (this.tags !== void 0 && this.tags !== '' && this.tags !== null && this.tags.length > 0) {
6060
icons = icons.filter(icon => {
61-
const t = icon.tags.filter(tag => this.tags.includes(tag))
62-
if (t.length > 0) {
63-
return icon
64-
}
61+
return icon.tags.filter(tag => this.tags.includes(tag)).length > 0
6562
})
6663
}
6764
if (this.filter !== void 0 && this.filter !== '' && this.filter !== null) {

0 commit comments

Comments
 (0)