UI: LwM2M device profile typo data model

This commit is contained in:
Vladyslav_Prykhodko 2021-06-30 19:07:27 +03:00 committed by Andrew Shvayka
parent 385c60a656
commit 8e78b65e77
2 changed files with 1 additions and 3 deletions

View File

@ -40,7 +40,6 @@ import {
Lwm2mProfileConfigModels,
ObjectLwM2M,
OBSERVE,
OBSERVE_ATTR_TELEMETRY,
PowerMode,
PowerModeTranslationMap,
RESOURCES,
@ -517,7 +516,7 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
}
removeObjectsList = (value: ObjectLwM2M): void => {
const objectsOld = this.lwm2mDeviceProfileFormGroup.get(OBSERVE_ATTR_TELEMETRY).value.clientLwM2M;
const objectsOld = this.lwm2mDeviceProfileFormGroup.get('observeAttrTelemetry').value;
const isIdIndex = (element) => element.keyId === value.keyId;
const index = objectsOld.findIndex(isIdIndex);
if (index >= 0) {

View File

@ -20,7 +20,6 @@ export const PAGE_SIZE_LIMIT = 50;
export const INSTANCES = 'instances';
export const INSTANCE = 'instance';
export const RESOURCES = 'resources';
export const OBSERVE_ATTR_TELEMETRY = 'observeAttrTelemetry';
export const OBSERVE = 'observe';
export const ATTRIBUTE = 'attribute';
export const TELEMETRY = 'telemetry';