mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 10:22:38 +00:00
Update client/homebrew/pages/userPage/userPage.jsx
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
@@ -147,7 +147,7 @@ const UserPage = createClass({
|
|||||||
const testString = _.deburr(this.state.filterString).toLowerCase();
|
const testString = _.deburr(this.state.filterString).toLowerCase();
|
||||||
const brewCollection = this.state.filterString ? _.filter(this.props.brews, (brew)=>{
|
const brewCollection = this.state.filterString ? _.filter(this.props.brews, (brew)=>{
|
||||||
return (_.deburr(brew.title).toLowerCase().includes(testString)) ||
|
return (_.deburr(brew.title).toLowerCase().includes(testString)) ||
|
||||||
(_.deburr(brew?.description).toLowerCase().includes(testString));
|
(_.deburr(brew.description).toLowerCase().includes(testString));
|
||||||
}) : this.props.brews;
|
}) : this.props.brews;
|
||||||
return _.groupBy(brewCollection, (brew)=>{
|
return _.groupBy(brewCollection, (brew)=>{
|
||||||
return (brew.published ? 'published' : 'private');
|
return (brew.published ? 'published' : 'private');
|
||||||
|
|||||||
Reference in New Issue
Block a user