Skip to content

Commit

Permalink
fix(mapping): fix mapped fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Narcisi committed Jan 15, 2025
1 parent 6f6b91a commit 78a4b0a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,15 @@ export class FieldMappingService {
}

onFieldMappingChange(value: any, oldValue: any) {
console.log('test1');
console.log(value);
console.log(oldValue);
console.log('test2');
if (value) {
this.fieldMappingStatus.mapped.add(value);
this.fieldMappingStatus.unmapped.delete(value);
} else if (oldValue != null) {
}
if (oldValue != null) {
this.fieldMappingStatus.mapped.delete(oldValue);
this.fieldMappingStatus.unmapped.add(oldValue);
}
Expand Down

0 comments on commit 78a4b0a

Please sign in to comment.