Skip to content

Commit

Permalink
fix(admin-ui): Do not reset Promotion actions & conditions on update
Browse files Browse the repository at this point in the history
Fixes #256
  • Loading branch information
michaelbromley committed Feb 3, 2020
1 parent 4d1d259 commit 2b3fc72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}),
{},
);
Expand Down

0 comments on commit 2b3fc72

Please sign in to comment.