From ef58826dd240ef4093a08fbafb6788f1f7e4087f Mon Sep 17 00:00:00 2001 From: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Date: Tue, 26 Mar 2024 11:37:21 +0100 Subject: [PATCH] fix(admin-ui, admin): Add missing regions relation (#6824) --- .changeset/angry-bottles-happen.md | 6 ++++++ packages/admin-ui/ui/src/domain/discounts/details/index.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/angry-bottles-happen.md diff --git a/.changeset/angry-bottles-happen.md b/.changeset/angry-bottles-happen.md new file mode 100644 index 0000000000..ad4216313a --- /dev/null +++ b/.changeset/angry-bottles-happen.md @@ -0,0 +1,6 @@ +--- +"@medusajs/admin-ui": patch +"@medusajs/admin": patch +--- + +fix(admin-ui, admin): Add missing regions relation diff --git a/packages/admin-ui/ui/src/domain/discounts/details/index.tsx b/packages/admin-ui/ui/src/domain/discounts/details/index.tsx index eb47c7a3f9..5be70b4fa2 100644 --- a/packages/admin-ui/ui/src/domain/discounts/details/index.tsx +++ b/packages/admin-ui/ui/src/domain/discounts/details/index.tsx @@ -23,7 +23,7 @@ const Edit = () => { const { discount, isLoading, error } = useAdminDiscount( id!, - { expand: "rule,rule.conditions" }, + { expand: "rule,rule.conditions,regions" }, { enabled: !!id, }