Skip to content

Commit

Permalink
PLATINT-4015 Default values not saving after Data Mapping (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosminendava authored Apr 4, 2024
1 parent 35e8981 commit 8821b68
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -657,18 +657,23 @@ class SystemConfigManager extends EventEmitter {
const save = JSON.parse(JSON.stringify(this.config.translation));
let fieldDefaults = save.allMappingConfigurations.field_defaults;
let fieldMappings = save.allMappingConfigurations.field_mappings;
let defaultMapping = save.allMappingConfigurations.default_mappings;
if (updates.allMappingConfigurations) {
if (updates.allMappingConfigurations.field_defaults) {
fieldDefaults = updates.allMappingConfigurations.field_defaults;
}
if (updates.allMappingConfigurations.field_mappings) {
fieldMappings = updates.allMappingConfigurations.field_mappings;
}
if (updates.allMappingConfigurations.defaultMapping) {
fieldMappings = updates.allMappingConfigurations.defaultMapping;
}
}

save.allMappingConfigurations = {
field_defaults: fieldDefaults,
field_mappings: fieldMappings,
default_mappings: defaultMapping
}


Expand Down

0 comments on commit 8821b68

Please sign in to comment.