Can't update inventory quantity on revamped admin
See original GitHub issueI feel like this is an important feature and I already mentioned it in the discord. Basically, the 2 ways of editing the inventory quantity of a product/variant don’t work, one of them is not being sent to the server, the other one can’t be modified because of an undefined function prop.
I did some digging in the source code and found this for the latter one:
When trying to change the inventory quantity in the new admin in the variants panel, it throws an error in the console onChange is undefined, because in /components/variant-grid/index.js:154 it tries to call a function, that the parent component should have, but in /domain/products/product-form/sections/variants.tsx:40 onChange is not defined as a prop on the VariantGrid component.
I’m creating this issue for people who look at the github issues and who have a better understanding (than me) of gatsby and react to fix this/help me fix this.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
Well spotted! Should definitely not be there.
It will be removed as part of #327 in which we fix all of the hanging issues w. the variant grid
Thanks for reporting it @Blechlawine!
We are currently working on fixing the variant grid and hope to have a new version out end of week.
Will make sure to ping both here and in Discord, when that’s the case 😃