mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-27 05:02:43 +00:00
Shift to AND operation for multiple tags
This commit is contained in:
@@ -218,7 +218,7 @@ const ListPage = createClass({
|
||||
|
||||
if(this.state.filterTags.length > 0) {
|
||||
brews = _.filter(brews, (brew)=>{
|
||||
return this.state.filterTags.some((tag)=>{
|
||||
return this.state.filterTags.every((tag)=>{
|
||||
return brew.tags?.includes(tag);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user