Commit 8e78b65e772afa36e8ce46b1e9ff6ac31612af90
Committed by
Andrew Shvayka
1 parent
385c60a6
UI: LwM2M device profile typo data model
Showing
2 changed files
with
1 additions
and
3 deletions
@@ -40,7 +40,6 @@ import { | @@ -40,7 +40,6 @@ import { | ||
40 | Lwm2mProfileConfigModels, | 40 | Lwm2mProfileConfigModels, |
41 | ObjectLwM2M, | 41 | ObjectLwM2M, |
42 | OBSERVE, | 42 | OBSERVE, |
43 | - OBSERVE_ATTR_TELEMETRY, | ||
44 | PowerMode, | 43 | PowerMode, |
45 | PowerModeTranslationMap, | 44 | PowerModeTranslationMap, |
46 | RESOURCES, | 45 | RESOURCES, |
@@ -517,7 +516,7 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro | @@ -517,7 +516,7 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro | ||
517 | } | 516 | } |
518 | 517 | ||
519 | removeObjectsList = (value: ObjectLwM2M): void => { | 518 | removeObjectsList = (value: ObjectLwM2M): void => { |
520 | - const objectsOld = this.lwm2mDeviceProfileFormGroup.get(OBSERVE_ATTR_TELEMETRY).value.clientLwM2M; | 519 | + const objectsOld = this.lwm2mDeviceProfileFormGroup.get('observeAttrTelemetry').value; |
521 | const isIdIndex = (element) => element.keyId === value.keyId; | 520 | const isIdIndex = (element) => element.keyId === value.keyId; |
522 | const index = objectsOld.findIndex(isIdIndex); | 521 | const index = objectsOld.findIndex(isIdIndex); |
523 | if (index >= 0) { | 522 | if (index >= 0) { |
@@ -20,7 +20,6 @@ export const PAGE_SIZE_LIMIT = 50; | @@ -20,7 +20,6 @@ export const PAGE_SIZE_LIMIT = 50; | ||
20 | export const INSTANCES = 'instances'; | 20 | export const INSTANCES = 'instances'; |
21 | export const INSTANCE = 'instance'; | 21 | export const INSTANCE = 'instance'; |
22 | export const RESOURCES = 'resources'; | 22 | export const RESOURCES = 'resources'; |
23 | -export const OBSERVE_ATTR_TELEMETRY = 'observeAttrTelemetry'; | ||
24 | export const OBSERVE = 'observe'; | 23 | export const OBSERVE = 'observe'; |
25 | export const ATTRIBUTE = 'attribute'; | 24 | export const ATTRIBUTE = 'attribute'; |
26 | export const TELEMETRY = 'telemetry'; | 25 | export const TELEMETRY = 'telemetry'; |