Skip to content

Commit

Permalink
Fix/mapping mapped fields (#3329)
Browse files Browse the repository at this point in the history
* fix(mapping): fix mapped fields
* fix(mapping) length is not a function
  • Loading branch information
Pierre-Narcisi authored Jan 15, 2025
1 parent 3361d27 commit 496e4f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h5 class="card-title mb-0">{{ 'Import.FieldMapping.Title' | translate }}</h5>
>
{{
'Import.FieldMapping.SourceFieldsAllMapped'
| translate: { sourceFieldsLength: sourceFields.length() }
| translate: { sourceFieldsLength: sourceFields.length }
}}
<br />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ export class FieldMappingService {
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 496e4f1

Please sign in to comment.