UI: LwM2M device profile typo data model
This commit is contained in:
parent
385c60a656
commit
8e78b65e77
@ -40,7 +40,6 @@ import {
|
|||||||
Lwm2mProfileConfigModels,
|
Lwm2mProfileConfigModels,
|
||||||
ObjectLwM2M,
|
ObjectLwM2M,
|
||||||
OBSERVE,
|
OBSERVE,
|
||||||
OBSERVE_ATTR_TELEMETRY,
|
|
||||||
PowerMode,
|
PowerMode,
|
||||||
PowerModeTranslationMap,
|
PowerModeTranslationMap,
|
||||||
RESOURCES,
|
RESOURCES,
|
||||||
@ -517,7 +516,7 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro
|
|||||||
}
|
}
|
||||||
|
|
||||||
removeObjectsList = (value: ObjectLwM2M): void => {
|
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 isIdIndex = (element) => element.keyId === value.keyId;
|
||||||
const index = objectsOld.findIndex(isIdIndex);
|
const index = objectsOld.findIndex(isIdIndex);
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
|
|||||||
@ -20,7 +20,6 @@ export const PAGE_SIZE_LIMIT = 50;
|
|||||||
export const INSTANCES = 'instances';
|
export const INSTANCES = 'instances';
|
||||||
export const INSTANCE = 'instance';
|
export const INSTANCE = 'instance';
|
||||||
export const RESOURCES = 'resources';
|
export const RESOURCES = 'resources';
|
||||||
export const OBSERVE_ATTR_TELEMETRY = 'observeAttrTelemetry';
|
|
||||||
export const OBSERVE = 'observe';
|
export const OBSERVE = 'observe';
|
||||||
export const ATTRIBUTE = 'attribute';
|
export const ATTRIBUTE = 'attribute';
|
||||||
export const TELEMETRY = 'telemetry';
|
export const TELEMETRY = 'telemetry';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user