clean tag representation and filtering

This commit is contained in:
Lachlan Kermode
2019-02-14 14:27:36 +00:00
parent aba8537357
commit 4e9128476d
12 changed files with 224 additions and 225 deletions

View File

@@ -80,6 +80,7 @@ function MapEvents ({ getCategoryColor, categories, projectPoint, styleLocation,
const { x, y } = projectPoint([location.latitude, location.longitude])
// in narrative mode, only render events in narrative
// TODO: move this to a selector
if (narrative) {
const { steps } = narrative
const onlyIfInNarrative = e => steps.map(s => s.id).includes(e.id)