Linting fixes

This commit is contained in:
efarooqui
2020-10-19 09:05:54 -07:00
parent 2cff35c3f2
commit 6927ecc3ce
5 changed files with 5 additions and 6 deletions

View File

@@ -41,7 +41,6 @@ export function fetchDomain () {
.catch(() => handleError('events'))
)
).then(results => results.flatMap(t => t))
let associationsPromise = Promise.resolve([])
if (features.USE_ASSOCIATIONS) {

View File

@@ -2,4 +2,4 @@ export const ASSOCIATION_MODES = {
CATEGORY: 'CATEGORY',
NARRATIVE: 'NARRATIVE',
FILTER: 'FILTER'
}
}

View File

@@ -298,7 +298,7 @@ class Timeline extends React.Component {
*/
styleDatetime (timestamp, category) {
return [null, null]
}
}
render () {
const { isNarrative, app } = this.props

View File

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

View File

@@ -232,7 +232,7 @@ function setInitialCategories (appState, action) {
associations: {
...appState.associations,
categories: categories
}
}
}
}