fixed bug with amount not updating / solved double dispatch problem with cartAction.load / removed all console.log calls - it became too chatty / add them as needed
This commit is contained in:
@@ -91,7 +91,7 @@ var BySection = React.createClass({
|
||||
SectionActions.loadSectionDetails(sectionId);
|
||||
},
|
||||
componentDidMount: function() {
|
||||
console.log('mounting....');
|
||||
|
||||
var sectionId = this.getParams().id;
|
||||
ItemActions.loadBestSellingItemsForSection(sectionId);
|
||||
SectionActions.loadSectionDetails(sectionId);
|
||||
@@ -112,7 +112,7 @@ var BySection = React.createClass({
|
||||
},
|
||||
_onChange: function() {
|
||||
if(this.isMounted()) {
|
||||
console.log('items store changed! by section');
|
||||
|
||||
this.setState({items: ItemStore.getBestSellingForSection()});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user