empty cart now contains suggestions
This commit is contained in:
@@ -15,7 +15,8 @@ var AllItemsInGroup = React.createClass({
|
||||
|
||||
// Add change listeners to stores
|
||||
componentDidMount: function() {
|
||||
ItemActions.loadBestSellingItemsForGroup(NavigationStore.getGroupIdFromUrl());
|
||||
var groupId = this.props.groupId || NavigationStore.getGroupIdFromUrl();
|
||||
ItemActions.loadBestSellingItemsForGroup(groupId);
|
||||
ItemStore.addChangeListener(this._onChange);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user