diff --git a/packages/admin/dashboard/src/components/table/table-cells/product/product-cell/product-cell.tsx b/packages/admin/dashboard/src/components/table/table-cells/product/product-cell/product-cell.tsx index 13a5c086b0b30..f4862cff1da8f 100644 --- a/packages/admin/dashboard/src/components/table/table-cells/product/product-cell/product-cell.tsx +++ b/packages/admin/dashboard/src/components/table/table-cells/product/product-cell/product-cell.tsx @@ -4,12 +4,12 @@ import { Thumbnail } from "../../../../common/thumbnail" import { HttpTypes } from "@medusajs/types" type ProductCellProps = { - product: HttpTypes.AdminProduct + product: Pick } export const ProductCell = ({ product }: ProductCellProps) => { return ( -
+
diff --git a/packages/admin/dashboard/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx b/packages/admin/dashboard/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx index a601541967d0f..b07023a7117c0 100644 --- a/packages/admin/dashboard/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx @@ -38,8 +38,8 @@ export function OrderAllocateItemsForm({ order }: OrderAllocateItemsFormProps) { () => order.items.filter( (item) => - item.variant.manage_inventory && - item.variant.inventory.length && + item.variant?.manage_inventory && + item.variant?.inventory.length && item.quantity - item.detail.fulfilled_quantity > 0 ), [order.items] @@ -48,8 +48,8 @@ export function OrderAllocateItemsForm({ order }: OrderAllocateItemsFormProps) { const filteredItems = useMemo(() => { return itemsToAllocate.filter( (i) => - i.variant.title.toLowerCase().includes(filterTerm) || - i.variant.product.title.toLowerCase().includes(filterTerm) + i.variant_title.toLowerCase().includes(filterTerm) || + i.product_title.toLowerCase().includes(filterTerm) ) }, [itemsToAllocate, filterTerm]) @@ -151,9 +151,9 @@ export function OrderAllocateItemsForm({ order }: OrderAllocateItemsFormProps) { const item = itemsToAllocate.find((i) => i.id === lineItem.id) - item.variant.inventory_items.forEach((ii, ind) => { + item.variant?.inventory_items.forEach((ii, ind) => { const num = value || 0 - const inventory = item.variant.inventory[ind] + const inventory = item.variant?.inventory[ind] form.setValue( `quantity.${lineItem.id}-${inventory.id}`, @@ -161,7 +161,7 @@ export function OrderAllocateItemsForm({ order }: OrderAllocateItemsFormProps) { ) if (value) { - const location = inventory.location_levels.find( + const location = inventory?.location_levels.find( (l) => l.location_id === selectedLocationId ) if (location) { @@ -313,16 +313,16 @@ function defaultAllocations(items: OrderLineItemDTO) { const ret = {} items.forEach((item) => { - const hasInventoryKit = item.variant.inventory_items.length > 1 + const hasInventoryKit = item.variant?.inventory_items.length > 1 ret[ hasInventoryKit ? `${item.id}-` - : `${item.id}-${item.variant.inventory[0].id}` + : `${item.id}-${item.variant?.inventory[0].id}` ] = "" if (hasInventoryKit) { - item.variant.inventory.forEach((i) => { + item.variant?.inventory.forEach((i) => { ret[`${item.id}-${i.id}`] = "" }) } diff --git a/packages/admin/dashboard/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-item.tsx b/packages/admin/dashboard/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-item.tsx index bf6c7aa03db62..187f5655f9e02 100644 --- a/packages/admin/dashboard/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-item.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-item.tsx @@ -37,7 +37,7 @@ export function OrderAllocateItemsItem({ const { t } = useTranslation() const variant = item.variant - const inventory = item.variant.inventory + const inventory = item.variant?.inventory || [] const [isOpen, setIsOpen] = useState(false) @@ -54,8 +54,6 @@ export function OrderAllocateItemsItem({ return {} } - const { inventory } = variant - const locationInventory = inventory[0]?.location_levels?.find( (inv) => inv.location_id === locationId ) @@ -73,8 +71,8 @@ export function OrderAllocateItemsItem({ const hasQuantityError = !hasInventoryKit && availableQuantity && - quantityField[`${item.id}-${item.variant.inventory[0].id}`] && - quantityField[`${item.id}-${item.variant.inventory[0].id}`] > + quantityField[`${item.id}-${item.variant?.inventory[0].id}`] && + quantityField[`${item.id}-${item.variant?.inventory[0].id}`] > availableQuantity const minValue = 0 @@ -95,12 +93,12 @@ export function OrderAllocateItemsItem({
- {item.variant.product.title} + {item.product_title} - {item.variant.sku && ( + {item.variant_sku && ( {" "} - ({item.variant.sku}) + ({item.variant_sku}) )} {hasInventoryKit && ( @@ -134,13 +132,13 @@ export function OrderAllocateItemsItem({ {availableQuantity && !hasInventoryKit && quantityField[ - `${item.id}-${item.variant.inventory[0].id}` + `${item.id}-${item.variant?.inventory[0].id}` ] && ( - { quantityField[ - `${item.id}-${item.variant.inventory[0].id}` + `${item.id}-${item.variant?.inventory[0].id}` ] } @@ -173,7 +171,7 @@ export function OrderAllocateItemsItem({ name={ hasInventoryKit ? `quantity.${item.id}-` - : `quantity.${item.id}-${item.variant.inventory[0].id}` + : `quantity.${item.id}-${item.variant?.inventory[0].id}` } rules={{ required: !hasInventoryKit, @@ -196,7 +194,7 @@ export function OrderAllocateItemsItem({ : Number(e.target.value) onQuantityChange( - item.variant.inventory[0], + item.variant?.inventory[0], item, hasInventoryKit, val, diff --git a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/add-claim-items-table/add-claim-items-table.tsx b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/add-claim-items-table/add-claim-items-table.tsx index c8170c834e7d9..a0c1b7f1fde19 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/add-claim-items-table/add-claim-items-table.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/add-claim-items-table/add-claim-items-table.tsx @@ -70,9 +70,9 @@ export const AddClaimItemsTable = ({ if (q) { results = results.filter((i) => { return ( - i.variant.product.title.toLowerCase().includes(q.toLowerCase()) || - i.variant.title.toLowerCase().includes(q.toLowerCase()) || - i.variant.sku?.toLowerCase().includes(q.toLowerCase()) + i.product_title.toLowerCase().includes(q.toLowerCase()) || + i.variant_title.toLowerCase().includes(q.toLowerCase()) || + i.variant_sku?.toLowerCase().includes(q.toLowerCase()) ) }) } @@ -173,14 +173,14 @@ const sortItems = ( let bValue: any if (field === "product_title") { - aValue = a.variant.product.title - bValue = b.variant.product.title + aValue = a.product_title + bValue = b.product_title } else if (field === "variant_title") { - aValue = a.variant.title - bValue = b.variant.title + aValue = a.variant_title + bValue = b.variant_title } else if (field === "sku") { - aValue = a.variant.sku - bValue = b.variant.sku + aValue = a.variant_sku + bValue = b.variant_sku } else if (field === "returnable_quantity") { aValue = a.quantity - (a.returned_quantity || 0) bValue = b.quantity - (b.returned_quantity || 0) diff --git a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/add-claim-items-table/use-claim-item-table-columns.tsx b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/add-claim-items-table/use-claim-item-table-columns.tsx index 6f1ae7271b779..1627ebebcdc16 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/add-claim-items-table/use-claim-item-table-columns.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/add-claim-items-table/use-claim-item-table-columns.tsx @@ -52,7 +52,12 @@ export const useClaimItemTableColumns = (currencyCode: string) => { id: "product", header: () => , cell: ({ row }) => ( - + ), }), columnHelper.accessor("variant.sku", { diff --git a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx index c5023f7b961a6..ca8b4c3b4e956 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx @@ -482,7 +482,7 @@ export const ClaimCreateForm = ({ return true } - if (!item.variant.manage_inventory) { + if (!item.variant?.manage_inventory) { return true } diff --git a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-inbound-item.tsx b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-inbound-item.tsx index b63748cb16552..75f31f209ffb6 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-inbound-item.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-inbound-item.tsx @@ -51,10 +51,10 @@ function ClaimInboundItem({ {item.title}{" "} - {item.variant?.sku && ({item.variant.sku})} + {item.variant_sku && ({item.variant_sku})}
- {item.variant?.product?.title} + {item.product_title}
diff --git a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-outbound-section.tsx b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-outbound-section.tsx index 193a85d051c9f..5f98ade2820d4 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-outbound-section.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-claim/components/claim-create-form/claim-outbound-section.tsx @@ -235,7 +235,7 @@ export const ClaimOutboundSection = ({ return true } - if (!item.variant.manage_inventory) { + if (!item.variant?.manage_inventory) { return true } diff --git a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/add-exchange-inbound-items-table.tsx b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/add-exchange-inbound-items-table.tsx index 12bf4fbdc5115..445aa75551be6 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/add-exchange-inbound-items-table.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/add-exchange-inbound-items-table.tsx @@ -56,9 +56,9 @@ export const AddExchangeInboundItemsTable = ({ if (q) { results = results.filter((i) => { return ( - i.variant.product.title.toLowerCase().includes(q.toLowerCase()) || - i.variant.title.toLowerCase().includes(q.toLowerCase()) || - i.variant.sku?.toLowerCase().includes(q.toLowerCase()) + i.product_title.toLowerCase().includes(q.toLowerCase()) || + i.variant_title.toLowerCase().includes(q.toLowerCase()) || + i.variant_sku?.toLowerCase().includes(q.toLowerCase()) ) }) } @@ -133,14 +133,14 @@ const sortItems = ( let bValue: any if (field === "product_title") { - aValue = a.variant.product.title - bValue = b.variant.product.title + aValue = a.product_title + bValue = b.product_title } else if (field === "variant_title") { - aValue = a.variant.title - bValue = b.variant.title + aValue = a.variant_title + bValue = b.variant_title } else if (field === "sku") { - aValue = a.variant.sku - bValue = b.variant.sku + aValue = a.variant_sku + bValue = b.variant_sku } if (aValue < bValue) { diff --git a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/use-exchange-item-table-columns.tsx b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/use-exchange-item-table-columns.tsx index 5c51be2df53c1..7995680b1c23f 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/use-exchange-item-table-columns.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/add-exchange-inbound-items-table/use-exchange-item-table-columns.tsx @@ -52,7 +52,12 @@ export const useExchangeItemTableColumns = (currencyCode: string) => { id: "product", header: () => , cell: ({ row }) => ( - + ), }), columnHelper.accessor("variant.sku", { diff --git a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-item.tsx b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-item.tsx index fd3b6fe2300e6..e9ae7f4403cc2 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-item.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-item.tsx @@ -51,10 +51,10 @@ function ExchangeInboundItem({ {item.title}{" "} - {item.variant?.sku && ({item.variant.sku})} + {item.variant_sku && ({item.variant_sku})}
- {item.variant?.product?.title} + {item.product_title} diff --git a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-section.tsx b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-section.tsx index 3c4bcc88dc1e6..eb4e8be325255 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-section.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-section.tsx @@ -287,7 +287,7 @@ export const ExchangeInboundSection = ({ return true } - if (!item.variant.manage_inventory) { + if (!item.variant?.manage_inventory) { return true } @@ -486,7 +486,7 @@ export const ExchangeInboundSection = ({ ({t("fields.optional")}) diff --git a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-section.tsx b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-section.tsx index 24ba5aaef8382..f3234e859b6b6 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-section.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-section.tsx @@ -244,7 +244,7 @@ export const ExchangeOutboundSection = ({ return true } - if (!item.variant.manage_inventory) { + if (!item.variant?.manage_inventory) { return true } diff --git a/packages/admin/dashboard/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx b/packages/admin/dashboard/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx index fc9d779d34263..96bd533159180 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx @@ -138,18 +138,7 @@ export function OrderCreateFulfillmentForm({ onSubmit={handleSubmit} className="flex h-full flex-col overflow-hidden" > - -
- - - - -
-
+
@@ -309,6 +298,18 @@ export function OrderCreateFulfillmentForm({
+ +
+ + + + +
+
) diff --git a/packages/admin/dashboard/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-item.tsx b/packages/admin/dashboard/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-item.tsx index 091b082f8ae07..307c3516c1106 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-item.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-item.tsx @@ -10,7 +10,6 @@ import { Thumbnail } from "../../../../../components/common/thumbnail/index" import { useProductVariant } from "../../../../../hooks/api/products" import { getFulfillableQuantity } from "../../../../../lib/order-item" import { CreateFulfillmentSchema } from "./constants" -import { useReservationItems } from "../../../../../hooks/api/reservations" type OrderEditItemProps = { item: HttpTypes.AdminOrderLineItem @@ -30,10 +29,13 @@ export function OrderCreateFulfillmentItem({ const { t } = useTranslation() const { variant } = useProductVariant( - item.variant!.product_id!, - item.variant_id!, + item.product_id, + item.variant_id, { fields: "*inventory,*inventory.location_levels", + }, + { + enabled: !!item.variant, } ) @@ -77,10 +79,10 @@ export function OrderCreateFulfillmentItem({ {item.title} - {item.variant?.sku && ({item.variant.sku})} + {item.variant_sku && ({item.variant_sku})} - {item.variant?.title ?? ""} + {item.variant_title} diff --git a/packages/admin/dashboard/src/routes/orders/order-create-return/components/add-return-items-table/add-return-items-table.tsx b/packages/admin/dashboard/src/routes/orders/order-create-return/components/add-return-items-table/add-return-items-table.tsx index 393c9c83ff49b..a7ae25611d1f0 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-return/components/add-return-items-table/add-return-items-table.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-return/components/add-return-items-table/add-return-items-table.tsx @@ -71,9 +71,9 @@ export const AddReturnItemsTable = ({ if (q) { results = results.filter((i) => { return ( - i.variant.product.title.toLowerCase().includes(q.toLowerCase()) || - i.variant.title.toLowerCase().includes(q.toLowerCase()) || - i.variant.sku?.toLowerCase().includes(q.toLowerCase()) + i.product_title.toLowerCase().includes(q.toLowerCase()) || + i.variant_title.toLowerCase().includes(q.toLowerCase()) || + i.variant_sku?.toLowerCase().includes(q.toLowerCase()) ) }) } @@ -174,14 +174,14 @@ const sortItems = ( let bValue: any if (field === "product_title") { - aValue = a.variant.product.title - bValue = b.variant.product.title + aValue = a.product_title + bValue = b.product_title } else if (field === "variant_title") { - aValue = a.variant.title - bValue = b.variant.title + aValue = a.variant_title + bValue = b.variant_title } else if (field === "sku") { - aValue = a.variant.sku - bValue = b.variant.sku + aValue = a.variant_sku + bValue = b.variant_sku } else if (field === "returnable_quantity") { aValue = a.quantity - (a.returned_quantity || 0) bValue = b.quantity - (b.returned_quantity || 0) diff --git a/packages/admin/dashboard/src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-columns.tsx b/packages/admin/dashboard/src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-columns.tsx index 29366917a0e98..acddb87d3c3ca 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-columns.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-return/components/add-return-items-table/use-return-item-table-columns.tsx @@ -52,7 +52,12 @@ export const useReturnItemTableColumns = (currencyCode: string) => { id: "product", header: () => , cell: ({ row }) => ( - + ), }), columnHelper.accessor("variant.sku", { diff --git a/packages/admin/dashboard/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx b/packages/admin/dashboard/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx index 52d5252ea9b8b..11f79f217f6ab 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx @@ -325,7 +325,7 @@ export const ReturnCreateForm = ({ return true } - if (!item.variant.manage_inventory) { + if (!item.variant?.manage_inventory) { return true } @@ -355,7 +355,7 @@ export const ReturnCreateForm = ({ return undefined } return await sdk.admin.product.retrieveVariant( - item.variant.product.id, + item.product_id, item.variant_id, { fields: "*inventory,*inventory.location_levels" } ) diff --git a/packages/admin/dashboard/src/routes/orders/order-create-return/components/return-create-form/return-item.tsx b/packages/admin/dashboard/src/routes/orders/order-create-return/components/return-create-form/return-item.tsx index 6962a713ac6cc..344e625159fa6 100644 --- a/packages/admin/dashboard/src/routes/orders/order-create-return/components/return-create-form/return-item.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-create-return/components/return-create-form/return-item.tsx @@ -53,10 +53,10 @@ function ReturnItem({ {item.title}{" "} - {item.variant.sku && ({item.variant.sku})} + {item.variant_sku && ({item.variant_sku})} - {item.variant.product.title} + {item.product_title} diff --git a/packages/admin/dashboard/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx b/packages/admin/dashboard/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx index 44148617e3bc2..d4c4c6162bc3d 100644 --- a/packages/admin/dashboard/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx @@ -369,6 +369,8 @@ const useActivityItems = (order: AdminOrder): Activity[] => { timestamp: edit.status === "requested" ? edit.requested_at + : edit.status === "confirmed" + ? edit.confirmed_at : edit.status === "declined" ? edit.declined_at : edit.status === "canceled" diff --git a/packages/admin/dashboard/src/routes/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx b/packages/admin/dashboard/src/routes/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx index d124474221009..c4adb2e494e4d 100644 --- a/packages/admin/dashboard/src/routes/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx +++ b/packages/admin/dashboard/src/routes/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx @@ -73,14 +73,14 @@ const UnfulfilledItem = ({ > {item.title} - {item.variant.sku && ( + {item.variant_sku && (
- {item.variant.sku} - + {item.variant_sku} +
)} - {item.variant.options.map((o) => o.value).join(" · ")} + {item.variant?.options.map((o) => o.value).join(" · ")} @@ -118,7 +118,6 @@ const UnfulfilledItemBreakdown = ({ order }: { order: AdminOrder }) => { (i) => !i.requires_shipping && i.detail.fulfilled_quantity < i.quantity ) - return ( <> {!!unfulfilledItemsWithShipping.length && ( @@ -428,7 +427,7 @@ const Fulfillment = ({ {(showShippingButton || showDeliveryButton) && ( -
+
{showDeliveryButton && (
- {originalItem.variant.product.title} + {originalItem.product_title}