bug fix filtering
This commit is contained in:
@@ -40,8 +40,6 @@ var ByCategory = React.createClass({
|
||||
var q = {};
|
||||
NavigationActions.goToCategory(category, section, q);
|
||||
|
||||
var categoryId = this.getParams().id;
|
||||
ItemActions.loadByCategory(categoryId, this.getQuery());
|
||||
},
|
||||
render: function() {
|
||||
var self = this;
|
||||
@@ -101,8 +99,9 @@ var ByCategory = React.createClass({
|
||||
return filters;
|
||||
},
|
||||
componentWillReceiveProps: function() {
|
||||
console.log("RECEIVING PROPS!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
var categoryId = this.getParams().id;
|
||||
ItemActions.loadByCategory(categoryId, this.getQuery());
|
||||
ItemActions.loadByCategory(categoryId, FilterCriteriaStore.getAppliedCategoryFilters());
|
||||
CategoryActions.loadCategoryDetails(categoryId);
|
||||
},
|
||||
componentDidMount: function() {
|
||||
@@ -126,6 +125,10 @@ var ByCategory = React.createClass({
|
||||
this.setState({
|
||||
appliedCategoryFilters: FilterCriteriaStore.getAppliedCategoryFilters()
|
||||
});
|
||||
var categoryId = this.getParams().id;
|
||||
//ItemActions.loadByCategory(categoryId, FilterCriteriaStore.getAppliedCategoryFilters());
|
||||
//CategoryActions.loadCategoryDetails(categoryId);
|
||||
|
||||
}
|
||||
},
|
||||
_onChange: function() {
|
||||
|
||||
Reference in New Issue
Block a user