From 2b3fc7223bc2b4a501670280d7067878cd7d030f Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Mon, 3 Feb 2020 09:48:22 +0100 Subject: [PATCH] fix(admin-ui): Do not reset Promotion actions & conditions on update Fixes #256 --- .../components/promotion-detail/promotion-detail.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/admin-ui/src/app/marketing/components/promotion-detail/promotion-detail.component.ts b/packages/admin-ui/src/app/marketing/components/promotion-detail/promotion-detail.component.ts index b629a961c3..4a8024cf00 100644 --- a/packages/admin-ui/src/app/marketing/components/promotion-detail/promotion-detail.component.ts +++ b/packages/admin-ui/src/app/marketing/components/promotion-detail/promotion-detail.component.ts @@ -253,7 +253,7 @@ export class PromotionDetailComponent extends BaseDetailComponent ({ ...output, - [arg.name]: getDefaultConfigArgValue(arg), + [arg.name]: arg.value != null ? arg.value : getDefaultConfigArgValue(arg), }), {}, );