Clear variants when order cycle changed, not when products are initially loaded

This commit is contained in:
Rohan Mitchell
2015-07-28 16:53:33 +10:00
parent 012a210782
commit bf2bd403a4
2 changed files with 9 additions and 7 deletions

View File

@@ -12,8 +12,6 @@ Darkswarm.factory 'Products', ($resource, Enterprises, Dereferencer, Taxons, Pro
@loading = true
@products = []
$resource("/shop/products").query (products)=>
Variants.clear()
@products = products
@extend()