From 6927ecc3cea59c6e26d9d815bc8b6adb3061391f Mon Sep 17 00:00:00 2001 From: efarooqui Date: Mon, 19 Oct 2020 09:05:54 -0700 Subject: [PATCH] Linting fixes --- src/actions/index.js | 1 - src/common/constants.js | 2 +- src/components/Timeline.jsx | 2 +- src/components/presentational/Timeline/Events.js | 4 ++-- src/reducers/app.js | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) 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 - } + } } }