From 8e4ca6b8fcd505a27534b18ff99caef0481c092a Mon Sep 17 00:00:00 2001 From: Sol Date: Tue, 28 Jul 2020 16:43:53 +0100 Subject: [PATCH] lint fixes --- src/components/Layout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Layout.js b/src/components/Layout.js index 6381a53..cfbe7b1 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -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)