mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 02:52:38 +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) {
|
if(this.state.filterTags.length > 0) {
|
||||||
brews = _.filter(brews, (brew)=>{
|
brews = _.filter(brews, (brew)=>{
|
||||||
return this.state.filterTags.some((tag)=>{
|
return this.state.filterTags.every((tag)=>{
|
||||||
return brew.tags?.includes(tag);
|
return brew.tags?.includes(tag);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user