narratives fixed

This commit is contained in:
Lachlan Kermode
2020-05-31 17:20:03 +02:00
parent e8a883dbac
commit 28501fe867
2 changed files with 2 additions and 4 deletions

View File

@@ -110,8 +110,6 @@ const TimelineEvents = ({
})
}
/* set `renderProjects` */
// TODO(lachlan): remove hardcoded 'Legislation'
let renderProjects = () => null
if (features.GRAPH_NONLOCATED) {
renderProjects = function () {

View File

@@ -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 {