mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 10:07:02 +00:00
Shift to AND operation for multiple tags
This commit is contained in:
1 parent
6dcc6d36b7
commit
041c7ed48f
1 file changed
+1
-1
@@ -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