fix(inventory): Minor fixes to upserting inventory items (#3883)

* fix(inventory): Minor fixes to upserting inventory item levels

* Create sour-jobs-decide.md

* fix(inventory): Minor fixes to upserting inventory item levels
This commit is contained in:
Oliver Windall Juhl
2023-04-19 22:43:09 +02:00
committed by GitHub
parent 5fdccf5e32
commit 966ddd2f16
3 changed files with 23 additions and 18 deletions
@@ -57,6 +57,7 @@ const EditVariantInventoryModal = ({ onClose, product, variant }: Props) => {
delete data.ean
delete data.barcode
delete data.upc
delete data.allow_backorder
return removeNullish({
...updateDimensions,
@@ -78,7 +79,7 @@ const EditVariantInventoryModal = ({ onClose, product, variant }: Props) => {
let inventoryItemId: string | undefined = itemId
const { ean, barcode, upc } = data
const { ean, barcode, upc, allow_backorder } = data
const upsertPayload = createUpdateInventoryItemPayload(data)
let shouldInvalidateCache = false
@@ -170,6 +171,7 @@ const EditVariantInventoryModal = ({ onClose, product, variant }: Props) => {
ean,
barcode,
upc,
allow_backorder,
}),
() => {
refetch()