mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
reset author, comment and taxon status when copying existing species, and add default value for unique identifier
This commit is contained in:
@@ -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>) => {
|
||||
|
||||
Reference in New Issue
Block a user