From 58ecccb95d047c41144986af0e8ff56b9439e6a8 Mon Sep 17 00:00:00 2001 From: Gaurav Vaidya Date: Wed, 15 Jan 2025 01:40:11 -0500 Subject: [PATCH] Allow empty taxa and specimens during a save. --- src/components/specifiers/Specifier.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/specifiers/Specifier.vue b/src/components/specifiers/Specifier.vue index 35f27e02..dec787ef 100644 --- a/src/components/specifiers/Specifier.vue +++ b/src/components/specifiers/Specifier.vue @@ -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':