mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 12:58:35 +03:00
lint fixes
This commit is contained in:
@@ -178,14 +178,14 @@ class Dashboard extends React.Component {
|
||||
|
||||
selectNarrativeStep (idx) {
|
||||
// Try to find idx if event passed rather than number
|
||||
if (typeof idx != 'number') {
|
||||
if (typeof idx !== 'number') {
|
||||
console.log('run')
|
||||
console.log(idx)
|
||||
let e = idx[0] || idx
|
||||
|
||||
if (this.props.app.narrative) {
|
||||
const { steps } = this.props.app.narrative
|
||||
// choose the first event at a given location
|
||||
// choose the first event at a given location
|
||||
const locationEventId = e.id
|
||||
const narrativeIdxObj = steps.find(s => s.id === locationEventId)
|
||||
let narrativeIdx = steps.indexOf(narrativeIdxObj)
|
||||
|
||||
Reference in New Issue
Block a user