mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
Add enabled sites marker from data object
This commit is contained in:
@@ -9,7 +9,7 @@ export const getActiveNarrative = state => state.app.narrative
|
||||
export const getActiveStep = state => state.app.narrativeState.current
|
||||
export const getSelected = state => state.app.selected
|
||||
export const getSites = (state) => {
|
||||
if (process.env.features.USE_SITES) return state.domain.sites
|
||||
if (process.env.features.USE_SITES) return state.domain.sites.filter(s => !!(+s.enabled))
|
||||
return []
|
||||
}
|
||||
export const getSources = state => {
|
||||
|
||||
Reference in New Issue
Block a user