diff --git a/src/actions/index.js b/src/actions/index.js index 388ed8a..66ba175 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -41,7 +41,6 @@ export function fetchDomain () { .catch(() => handleError('events')) ) ).then(results => results.flatMap(t => t)) - let associationsPromise = Promise.resolve([]) if (features.USE_ASSOCIATIONS) { diff --git a/src/common/constants.js b/src/common/constants.js index c67a6b9..1270368 100644 --- a/src/common/constants.js +++ b/src/common/constants.js @@ -2,4 +2,4 @@ export const ASSOCIATION_MODES = { CATEGORY: 'CATEGORY', NARRATIVE: 'NARRATIVE', FILTER: 'FILTER' -} \ No newline at end of file +} diff --git a/src/components/Timeline.jsx b/src/components/Timeline.jsx index eb612c9..5a0f5ef 100644 --- a/src/components/Timeline.jsx +++ b/src/components/Timeline.jsx @@ -298,7 +298,7 @@ class Timeline extends React.Component { */ styleDatetime (timestamp, category) { return [null, null] - } + } render () { const { isNarrative, app } = this.props diff --git a/src/components/presentational/Timeline/Events.js b/src/components/presentational/Timeline/Events.js index af9ea59..5898384 100644 --- a/src/components/presentational/Timeline/Events.js +++ b/src/components/presentational/Timeline/Events.js @@ -98,10 +98,10 @@ const TimelineEvents = ({ } const relatedCategories = getEventCategories(event, categories) - + if (relatedCategories && relatedCategories.length > 0) { relatedCategories.forEach(cat => { - const eventY = getY({...event, category: cat.id}) + const eventY = getY({ ...event, category: cat.id }) let colour = event.colour ? event.colour : getCategoryColor(cat.id) const styles = { diff --git a/src/reducers/app.js b/src/reducers/app.js index 3049e38..d87f029 100644 --- a/src/reducers/app.js +++ b/src/reducers/app.js @@ -232,7 +232,7 @@ function setInitialCategories (appState, action) { associations: { ...appState.associations, categories: categories - } + } } }