empty cart now contains suggestions

This commit is contained in:
Senad Uka
2015-06-13 06:21:04 +02:00
parent 1e32562aff
commit 9c01fac72d
3 changed files with 10 additions and 2 deletions

View File

@@ -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);
},