feat(admin-ui, medusa): Improve fulfillment validation (#3541)

* validate that an inventory level exists as well

* improve create-fulfillment handling in admin

* pass along location id rather than inventory level id

* add changeset

* remove dependency
This commit is contained in:
Philip Korsholm
2023-03-27 20:36:59 +02:00
committed by GitHub
parent 53c4a43ca2
commit feaf8d2e19
7 changed files with 58 additions and 16 deletions

View File

@@ -76,7 +76,7 @@ const EditVariantInventoryModal = ({ onClose, product, variant }: Props) => {
deleteLocations.map(async (location: InventoryLevelDTO) => {
await client.admin.inventoryItems.deleteLocationLevel(
inventoryItemId!,
location.id
location.location_id
)
})
)