From d9417eaa897855693b691287ab2e5b5ae2161bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Sat, 4 Nov 2017 17:38:04 +0100 Subject: [PATCH] fix(config): Remove userConfigurationLength from json serialization (#490) --- .../src/config-serializer/config-items/user-configuration.ts | 2 -- packages/uhk-web/src/app/services/user-config.json | 1 - 2 files changed, 3 deletions(-) diff --git a/packages/uhk-common/src/config-serializer/config-items/user-configuration.ts b/packages/uhk-common/src/config-serializer/config-items/user-configuration.ts index 46299611..b1d46119 100644 --- a/packages/uhk-common/src/config-serializer/config-items/user-configuration.ts +++ b/packages/uhk-common/src/config-serializer/config-items/user-configuration.ts @@ -27,7 +27,6 @@ export class UserConfiguration { fromJsonObject(jsonObject: any): UserConfiguration { this.dataModelVersion = jsonObject.dataModelVersion; - this.userConfigurationLength = jsonObject.userConfigurationLength; this.deviceName = jsonObject.deviceName; this.setDefaultDeviceName(); this.moduleConfigurations = jsonObject.moduleConfigurations.map((moduleConfiguration: any) => { @@ -69,7 +68,6 @@ export class UserConfiguration { toJsonObject(): any { return { dataModelVersion: this.dataModelVersion, - userConfigurationLength: this.userConfigurationLength, deviceName: this.deviceName, moduleConfigurations: this.moduleConfigurations.map(moduleConfiguration => moduleConfiguration.toJsonObject()), keymaps: this.keymaps.map(keymap => keymap.toJsonObject(this.macros)), diff --git a/packages/uhk-web/src/app/services/user-config.json b/packages/uhk-web/src/app/services/user-config.json index cc2cf8ab..a76681d4 100644 --- a/packages/uhk-web/src/app/services/user-config.json +++ b/packages/uhk-web/src/app/services/user-config.json @@ -1,6 +1,5 @@ { "dataModelVersion": 4, - "userConfigurationLength": 3846, "deviceName": "My UHK", "moduleConfigurations": [ {