Browse Source

fix(admin-ui): Do not reset Promotion actions & conditions on update

Fixes #256
Michael Bromley 6 years ago
parent
commit
2b3fc7223b

+ 1 - 1
packages/admin-ui/src/app/marketing/components/promotion-detail/promotion-detail.component.ts

@@ -253,7 +253,7 @@ export class PromotionDetailComponent extends BaseDetailComponent<Promotion.Frag
             const argsHash = operation.args.reduce(
                 (output, arg) => ({
                     ...output,
-                    [arg.name]: getDefaultConfigArgValue(arg),
+                    [arg.name]: arg.value != null ? arg.value : getDefaultConfigArgValue(arg),
                 }),
                 {},
             );