reset author, comment and taxon status when copying existing species, and add default value for unique identifier

This commit is contained in:
juhanikat
2025-09-08 10:57:46 +03:00
parent 8c8a285ab7
commit 47268e879d
@@ -57,6 +57,9 @@ export const SpeciesTab = () => {
genus_name: fixedSpecies.genus_name!,
species_name: fixedSpecies.species_name!,
unique_identifier: fixedSpecies.unique_identifier!,
taxonomic_status: '',
sp_comment: '',
sp_author: '',
})
}}
/>
@@ -190,6 +193,7 @@ export const SpeciesTab = () => {
<EditingForm<EditDataType<Species>, LocalityDetailsType>
buttonText="Add new Species"
formFields={formFields}
existingObject={{ unique_identifier: '-' }}
replacedValues={replacedValues}
copyTaxonomyButton={copyTaxonomyButton}
editAction={(newSpecies: EditDataType<Species>) => {