Skip to content

Commit

Permalink
Merge pull request #2210 from NCEAS/bugfix-2196-persistent-taxa
Browse files Browse the repository at this point in the history
Fix taxa persisting between editor sessions bug
  • Loading branch information
robyngit authored Oct 25, 2023
2 parents ee44f2f + b5e71f5 commit adac740
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 adac740

Please sign in to comment.