Skip to content

Commit

Permalink
Fix taxa persisting between editor sessions bug
Browse files Browse the repository at this point in the history
Fixes #2196
  • Loading branch information
robyngit committed Oct 25, 2023
1 parent ee44f2f commit b5e71f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/views/metadata/EML211View.js
Original file line number Diff line number Diff line change
Expand Up @@ -2347,8 +2347,8 @@ define(['underscore', 'jquery', 'backbone',
if (taxonCoverages && taxonCoverages.length >= 1){
const taxonCoverage = taxonCoverages[0];
const classifications = taxonCoverage.get("taxonomicClassification");
classifications.push(...newClassifications);
taxonCoverage.set("taxonomicClassification", classifications);
const allClass = classifications.concat(newClassifications);
taxonCoverage.set("taxonomicClassification", allClass);
} else {
// If there is no <taxonomicCoverage> element for some reason,
// create one and add the new taxon to its <taxonomicClassification>
Expand Down

0 comments on commit b5e71f5

Please sign in to comment.