From e52b2bb74a38d2cb6d331d60ced8c3ba0aabc968 Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Tue, 14 Apr 2020 13:36:55 +0200 Subject: [PATCH] Fix attribute stock input --- src/products/components/ProductVariantCreatorPage/reducer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/products/components/ProductVariantCreatorPage/reducer.ts b/src/products/components/ProductVariantCreatorPage/reducer.ts index 93f2dbd16..81e410723 100644 --- a/src/products/components/ProductVariantCreatorPage/reducer.ts +++ b/src/products/components/ProductVariantCreatorPage/reducer.ts @@ -385,8 +385,8 @@ function reduceProductVariantCreateFormData( return changeAttributeValueStock( prevState, action.changeAttributeValueStock.valueId, - action.changeAttributeValueStock.warehouseIndex, - action.changeAttributeValueStock.quantity + action.changeAttributeValueStock.quantity, + action.changeAttributeValueStock.warehouseIndex ); case ProductVariantCreateReducerActionType.changeApplyPriceToAttributeId: return changeApplyPriceToAttributeId(