add rank updates to productservice.update
This commit is contained in:
1 parent
99b6a94146
commit
7681e6a641
1 file changed
+3
-1
@@ -410,7 +410,9 @@ class ProductService extends BaseService {
|
||||
}
|
||||
|
||||
const newVariants = []
|
||||
for (const newVariant of variants) {
|
||||
for (const [i, newVariant] of variants.entries()) {
|
||||
newVariant.rank = i
|
||||
|
||||
if (newVariant.id) {
|
||||
const variant = product.variants.find(v => v.id === newVariant.id)
|
||||
|
||||
|
||||
Reference in new issue
Block a user