Browse Source

Merge pull request #11727 from rusikv/bug/lwm2m-instances

Fixed coping of instances when deleting LWM2M objects
pull/11736/head
Igor Kulikov 2 years ago
committed by GitHub
parent
commit
2fe11366bf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.ts

6
ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.ts

@ -530,8 +530,10 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
this.removeObserveAttrTelemetryFromJson(ATTRIBUTE, value.keyId);
this.removeKeyNameFromJson(value.keyId);
this.removeAttributesFromJson(value.keyId);
this.updateObserveAttrTelemetryObjectFormGroup(objectsOld);
}
this.lwm2mDeviceProfileFormGroup.patchValue({
observeAttrTelemetry: deepClone(objectsOld)
}, {emitEvent: false});
};
private removeObserveAttrTelemetryFromJson = (observeAttrTel: string, keyId: string): void => {
const isIdIndex = (element) => element.startsWith(`/${keyId}`);

Loading…
Cancel
Save