mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
moved required cover values into intitial.js
This commit is contained in:
committed by
Lachlan Kermode
parent
db92644624
commit
880a9fab0f
@@ -38,7 +38,7 @@ export const selectEvents = createSelector(
|
||||
[getEvents, getActiveTags, getActiveCategories, getTimeRange],
|
||||
(events, activeTags, activeCategories, timeRange) => {
|
||||
return events.reduce((acc, event) => {
|
||||
const isMatchingTag = event.tags.map(tag => activeTags.includes(tag)).some(s => s)
|
||||
const isMatchingTag = event.tags && event.tags.map(tag => activeTags.includes(tag)).some(s => s)
|
||||
const isActiveTag = isMatchingTag || activeTags.length === 0
|
||||
const isActiveCategory = activeCategories.includes(event.category) || activeCategories.length === 0
|
||||
const isActiveTime = isTimeRangedIn(event, timeRange)
|
||||
|
||||
Reference in New Issue
Block a user