Remove formatDevelopmentalCrownType function

Removed the formatDevelopmentalCrownType function from SpeciesTable component.
This commit is contained in:
Kari Lintulaakso
2025-11-10 13:47:35 +02:00
committed by GitHub
parent f28d67c2e0
commit aa9ea8393f
@@ -43,26 +43,6 @@ const createSynonymAwareFilter = (
}
}
const formatDevelopmentalCrownType = (species: Species): string => {
const segments: Array<string | null> = [
species.cusp_shape,
species.cusp_count_buccal,
species.cusp_count_lingual,
species.loph_count_lon,
species.loph_count_trs,
]
return segments
.map(segment => {
if (segment == null || segment === '') {
return '-'
}
return segment
})
.join('')
}
export const SpeciesTable = ({ selectorFn }: { selectorFn?: (id: Species) => void }) => {
const [selectedSpecies, setSelectedSpecies] = useState<string | undefined>()
const [modalOpen, setModalOpen] = useState<boolean>(false)