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 | 40 | Lwm2mProfileConfigModels, |
41 | 41 | ObjectLwM2M, |
42 | 42 | OBSERVE, |
43 | - OBSERVE_ATTR_TELEMETRY, | |
44 | 43 | PowerMode, |
45 | 44 | PowerModeTranslationMap, |
46 | 45 | RESOURCES, |
... | ... | @@ -517,7 +516,7 @@ export class Lwm2mDeviceProfileTransportConfigurationComponent implements Contro |
517 | 516 | } |
518 | 517 | |
519 | 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 | 520 | const isIdIndex = (element) => element.keyId === value.keyId; |
522 | 521 | const index = objectsOld.findIndex(isIdIndex); |
523 | 522 | if (index >= 0) { | ... | ... |
... | ... | @@ -20,7 +20,6 @@ export const PAGE_SIZE_LIMIT = 50; |
20 | 20 | export const INSTANCES = 'instances'; |
21 | 21 | export const INSTANCE = 'instance'; |
22 | 22 | export const RESOURCES = 'resources'; |
23 | -export const OBSERVE_ATTR_TELEMETRY = 'observeAttrTelemetry'; | |
24 | 23 | export const OBSERVE = 'observe'; |
25 | 24 | export const ATTRIBUTE = 'attribute'; |
26 | 25 | export const TELEMETRY = 'telemetry'; | ... | ... |