Resolve "Tests SectionPage"
Closes #227 (closed)
Additional component changes in the cleanup:
- Added a
speciesIds
-computed property (DRY) and removed unused data-property with same name - Removed unused
this.transect
- Removed unused Icon
- Removed unused CSS rules
- Use
useTransects
instead ofTransectService
to fetch the transect from local storage - Moved data into data property (sections, currentSectionEvents etc.)
- Replaced computational expensive line (
this.species = usedSpeciesIds.map(this.getSpeciesById).filter(it => it !== undefined) as SpeciesListItem[]
) - to only update species which aren't already inthis.species
- Shifted
v-for
fromion-list
intospeciesCard
to prevent multiple lists (instead of multiple items in a single list) - Adjusted component name and SectionPageData name (data type interface)
- Sorted imports
- Slight refactoring of useButterflyList and useTransects
Edited by Michael Voigt