diff --git a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts index 38611fa36..967994275 100644 --- a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts +++ b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts @@ -262,10 +262,11 @@ export class CreateEditEndpointComponent implements AfterViewChecked, OnDestroy delete payload[prop]; } let changes: {[key: string]: any} = this.getChanges(); - let changekeys: {[key: string]: any} = Object.keys(this.getChanges()); if (isEmptyObject(changes)) { return; } + let changekeys: {[key: string]: any} = Object.keys(changes); + changekeys.forEach((key: string) => { payload[key] = changes[key]; }); diff --git a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html.ts b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html.ts index 9cd0b7b1a..1def3e7fe 100644 --- a/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html.ts +++ b/src/ui_ng/lib/src/create-edit-rule/create-edit-rule.component.html.ts @@ -74,7 +74,7 @@ export const CREATE_EDIT_RULE_TEMPLATE: string = `