mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
narratives fixed
This commit is contained in:
@@ -110,8 +110,6 @@ const TimelineEvents = ({
|
||||
})
|
||||
}
|
||||
|
||||
/* set `renderProjects` */
|
||||
// TODO(lachlan): remove hardcoded 'Legislation'
|
||||
let renderProjects = () => null
|
||||
if (features.GRAPH_NONLOCATED) {
|
||||
renderProjects = function () {
|
||||
|
||||
@@ -77,8 +77,8 @@ function updateNarrative (appState, action) {
|
||||
}
|
||||
|
||||
// Add some buffer on both sides of the time extent
|
||||
minTime = new Date(minTime.getTime() - Math.abs((maxTime - minTime) / 10))
|
||||
maxTime = new Date(maxTime.getTime() + Math.abs((maxTime - minTime) / 10))
|
||||
minTime = minTime - Math.abs((maxTime - minTime) / 10)
|
||||
maxTime = maxTime + Math.abs((maxTime - minTime) / 10)
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user