Fixes #1800
@@ -72,7 +72,7 @@ export function toConfigurableOperationInput(
code: operation.code,
arguments: operation.args.map(({ name, value }, j) => {
const formValue = argsArray?.find(arg => arg.name === name)?.value ?? argsMap?.[name];
- if (!formValue) {
+ if (!formValue == null) {
throw new Error(`Cannot find an argument value for the key "${name}"`);
}
return {
@@ -241,6 +241,8 @@ export class ShippingMethodDetailComponent
this.changeDetector.markForCheck();
},
err => {
+ // tslint:disable-next-line:no-console
+ console.error(err);
this.notificationService.error(_('common.notify-update-error'), {
entity: 'ShippingMethod',
});