Bug with graph nonlocated and getY function; need to refactor toolbar so that it selects the categories on the timeline

This commit is contained in:
efarooqui
2020-10-08 16:58:31 -07:00
parent 67c336c131
commit 909307a6ae
6 changed files with 34 additions and 17 deletions

View File

@@ -55,7 +55,11 @@ export const selectEvents = createSelector(
.some(s => s)
) || activeFilters.length === 0
const isActiveFilter = isMatchingFilter || activeFilters.length === 0
const isActiveCategory = activeCategories.includes(event.category) || activeCategories.length === 0
const isActiveCategory = (event.associations &&
event.associations.map(association =>
activeCategories.includes(association))
.some(s => s)
) || activeCategories.length === 0
let isActiveTime = isTimeRangedIn(event, timeRange)
isActiveTime = features.GRAPH_NONLOCATED
? ((!event.latitude && !event.longitude) || isActiveTime)