mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
Linting fixes
This commit is contained in:
@@ -41,7 +41,6 @@ export function fetchDomain () {
|
||||
.catch(() => handleError('events'))
|
||||
)
|
||||
).then(results => results.flatMap(t => t))
|
||||
|
||||
|
||||
let associationsPromise = Promise.resolve([])
|
||||
if (features.USE_ASSOCIATIONS) {
|
||||
|
||||
@@ -2,4 +2,4 @@ export const ASSOCIATION_MODES = {
|
||||
CATEGORY: 'CATEGORY',
|
||||
NARRATIVE: 'NARRATIVE',
|
||||
FILTER: 'FILTER'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -298,7 +298,7 @@ class Timeline extends React.Component {
|
||||
*/
|
||||
styleDatetime (timestamp, category) {
|
||||
return [null, null]
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
const { isNarrative, app } = this.props
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -232,7 +232,7 @@ function setInitialCategories (appState, action) {
|
||||
associations: {
|
||||
...appState.associations,
|
||||
categories: categories
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user