Skip to content

Commit

Permalink
Merge pull request #4777 from specify/wb-disambiguate-all-fix
Browse files Browse the repository at this point in the history
Fix disambiguate all incorrectly affectly records
  • Loading branch information
CarolineDenis authored Apr 26, 2024
2 parents 275e448 + 704448b commit 0cfa2ec
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,21 +199,21 @@ export class Disambiguation {
visualRow--
) {
const physicalRow = this.wbView.hot!.toPhysicalRow(visualRow);
if (
!this.wbView.validation.uploadResults.ambiguousMatches[
const ambiguousMatchToDisambiguate =
this.wbView.validation.uploadResults.ambiguousMatches[
physicalRow
]?.find(
({ key, mappingPath }) =>
key === matches.key &&
typeof this.getDisambiguation(physicalRow)[
mappingPathToString(mappingPath)
] !== 'number'
)
)
continue;
);

if (ambiguousMatchToDisambiguate === undefined) continue;
this.setDisambiguation(
physicalRow,
matches.mappingPath,
ambiguousMatchToDisambiguate.mappingPath,
selected.id
);
this.wbView.validation.startValidateRow(physicalRow);
Expand Down

0 comments on commit 0cfa2ec

Please sign in to comment.