UI: LwM2M device profile typo data model
This commit is contained in:
parent
385c60a656
commit
8e78b65e77
@ -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) {
|
||||
|
||||
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user