Skip to content

Commit d9417ea

Browse files
ert78gbmondalaci
authored andcommitted
fix(config): Remove userConfigurationLength from json serialization (#490)
1 parent 78e27c3 commit d9417ea

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

packages/uhk-common/src/config-serializer/config-items/user-configuration.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export class UserConfiguration {
2727

2828
fromJsonObject(jsonObject: any): UserConfiguration {
2929
this.dataModelVersion = jsonObject.dataModelVersion;
30-
this.userConfigurationLength = jsonObject.userConfigurationLength;
3130
this.deviceName = jsonObject.deviceName;
3231
this.setDefaultDeviceName();
3332
this.moduleConfigurations = jsonObject.moduleConfigurations.map((moduleConfiguration: any) => {
@@ -69,7 +68,6 @@ export class UserConfiguration {
6968
toJsonObject(): any {
7069
return {
7170
dataModelVersion: this.dataModelVersion,
72-
userConfigurationLength: this.userConfigurationLength,
7371
deviceName: this.deviceName,
7472
moduleConfigurations: this.moduleConfigurations.map(moduleConfiguration => moduleConfiguration.toJsonObject()),
7573
keymaps: this.keymaps.map(keymap => keymap.toJsonObject(this.macros)),

packages/uhk-web/src/app/services/user-config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"dataModelVersion": 4,
3-
"userConfigurationLength": 3846,
43
"deviceName": "My UHK",
54
"moduleConfigurations": [
65
{

0 commit comments

Comments
 (0)