fixes for inconsistent cart state
This commit is contained in:
@@ -34,7 +34,9 @@ var getItemIdFromUrl = function() {
|
||||
var itemIdRegex = /artikal\/(\d+)\//g;
|
||||
var match = itemIdRegex.exec(url);
|
||||
|
||||
return match[1];
|
||||
if (match) {
|
||||
return match[1];
|
||||
}
|
||||
};
|
||||
|
||||
var fetchItemWithDetails = function() {
|
||||
@@ -191,4 +193,4 @@ AppDispatcher.register(function(payload) {
|
||||
|
||||
});
|
||||
|
||||
module.exports = ItemStore;
|
||||
module.exports = ItemStore;
|
||||
|
||||
Reference in New Issue
Block a user