|
|
@ -190,7 +190,7 @@ export abstract class TemplateConfiguration<T, R = any> extends DialogComponent< |
|
|
protected getNotificationTemplateValue(): NotificationTemplate { |
|
|
protected getNotificationTemplateValue(): NotificationTemplate { |
|
|
const template: NotificationTemplate = deepClone(this.templateNotificationForm.value); |
|
|
const template: NotificationTemplate = deepClone(this.templateNotificationForm.value); |
|
|
this.notificationDeliveryMethods.forEach(method => { |
|
|
this.notificationDeliveryMethods.forEach(method => { |
|
|
if (template.configuration.deliveryMethodsTemplates[method].enabled) { |
|
|
if (template.configuration.deliveryMethodsTemplates[method]?.enabled) { |
|
|
Object.assign(template.configuration.deliveryMethodsTemplates[method], this.deliveryMethodFormsMap.get(method).value, {method}); |
|
|
Object.assign(template.configuration.deliveryMethodsTemplates[method], this.deliveryMethodFormsMap.get(method).value, {method}); |
|
|
} else { |
|
|
} else { |
|
|
delete template.configuration.deliveryMethodsTemplates[method]; |
|
|
delete template.configuration.deliveryMethodsTemplates[method]; |
|
|
|