Skip to content

Commit

Permalink
Allow empty taxa and specimens during a save.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Jan 15, 2025
1 parent a34dc5f commit 58ecccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/specifiers/Specifier.vue
Original file line number Diff line number Diff line change
Expand Up @@ -720,12 +720,12 @@ export default {
switch (this.specifierClass) {
case 'Taxon':
// Set up a taxonomic unit for this taxon.
result = this.wrappedTaxonConcept.tunit;
result = this.wrappedTaxonConcept.tunit || {};
break;

case 'Specimen':
// Set up a taxonomic unit for this specimen.
result = SpecimenWrapper.fromOccurrenceID(this.occurrenceID);
result = SpecimenWrapper.fromOccurrenceID(this.occurrenceID) || {};
break;

case 'External reference':
Expand Down

0 comments on commit 58ecccb

Please sign in to comment.