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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
2 deletions
-
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}`); |
|
|
|
|