mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user