mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-29 13:22:40 +00:00
Move userpage brew data clean up to app.js
This commit is contained in:
@@ -28,7 +28,6 @@ const UserPage = createClass({
|
||||
const usernameWithS = this.props.username + (this.props.username.endsWith('s') ? `’` : `’s`);
|
||||
|
||||
const brews = _.groupBy(this.props.brews, (brew)=>{
|
||||
brew.title = brew.title.trim();
|
||||
return (brew.published ? 'published' : 'private');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user