mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 09:42:43 +00:00
Removing the ability for the changelog to get into the recent brews
This commit is contained in:
@@ -30,12 +30,14 @@ var BaseItem = React.createClass({
|
|||||||
brews = _.filter(brews, (brew)=>{
|
brews = _.filter(brews, (brew)=>{
|
||||||
return brew.id !== this.props.currentBrew.id;
|
return brew.id !== this.props.currentBrew.id;
|
||||||
});
|
});
|
||||||
|
if(this.props.currentBrew.id){
|
||||||
brews.unshift({
|
brews.unshift({
|
||||||
id : this.props.currentBrew.id,
|
id : this.props.currentBrew.id,
|
||||||
url : this.props.currentBrew.url,
|
url : this.props.currentBrew.url,
|
||||||
title : this.props.currentBrew.title,
|
title : this.props.currentBrew.title,
|
||||||
ts : Date.now()
|
ts : Date.now()
|
||||||
});
|
});
|
||||||
|
}
|
||||||
brews = _.slice(brews, 0, 8);
|
brews = _.slice(brews, 0, 8);
|
||||||
localStorage.setItem(this.props.storageKey, JSON.stringify(brews));
|
localStorage.setItem(this.props.storageKey, JSON.stringify(brews));
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|||||||
Reference in New Issue
Block a user