diff --git a/.changeset/neat-rabbits-teach.md b/.changeset/neat-rabbits-teach.md new file mode 100644 index 0000000000..27b656f018 --- /dev/null +++ b/.changeset/neat-rabbits-teach.md @@ -0,0 +1,5 @@ +--- +"@medusajs/dashboard": patch +--- + +fix(dashboard): Persist variant_rank diff --git a/packages/admin/dashboard/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx b/packages/admin/dashboard/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx index cd18dbf7b2..6361ac4d1a 100644 --- a/packages/admin/dashboard/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +++ b/packages/admin/dashboard/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx @@ -453,6 +453,7 @@ export const ProductCreateVariantsSection = ({ >
@@ -493,6 +494,7 @@ export const ProductCreateVariantsSection = ({ { const quantity = i.required_quantity diff --git a/packages/admin/dashboard/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx b/packages/admin/dashboard/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx index cb755af374..b8263394b0 100644 --- a/packages/admin/dashboard/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx +++ b/packages/admin/dashboard/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx @@ -64,7 +64,7 @@ export const ProductVariantSection = ({ product.id, { q, - order, + order: order ? order : "variant_rank", offset: offset ? parseInt(offset) : undefined, limit: PAGE_SIZE, allow_backorder: allow_backorder