From 8442ca7bb4bfd3fa4bf6bca992faa0d4fe8236c3 Mon Sep 17 00:00:00 2001 From: efarooqui Date: Mon, 14 Sep 2020 08:12:57 -0700 Subject: [PATCH] Fixed linting issues --- src/common/constants.js | 2 +- src/components/Layout.js | 2 +- src/reducers/app.js | 2 +- src/reducers/validate/validators.js | 2 +- src/selectors/index.js | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/constants.js b/src/common/constants.js index 4cd536e..0537970 100644 --- a/src/common/constants.js +++ b/src/common/constants.js @@ -1,2 +1,2 @@ export const FILTER_MODE = 'FILTER' -export const NARRATIVE_MODE = 'NARRATIVE' \ No newline at end of file +export const NARRATIVE_MODE = 'NARRATIVE' diff --git a/src/components/Layout.js b/src/components/Layout.js index feaaa80..9abd446 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -139,7 +139,7 @@ class Dashboard extends React.Component { activeFilters = activeFilters.map(f => ({ name: f })) const evs = domain.events.filter(ev => { - let hasOne = false + let hasOne = false // add event if it has at least one matching filter for (let i = 0; i < activeFilters.length; i++) { if (ev.associations.includes(activeFilters[i].name)) { diff --git a/src/reducers/app.js b/src/reducers/app.js index 6498eb1..5ed4fbf 100644 --- a/src/reducers/app.js +++ b/src/reducers/app.js @@ -126,7 +126,7 @@ function toggleFilter (appState, action) { ...appState, associations: { ...appState.associations, - filters: newFilters, + filters: newFilters } } } diff --git a/src/reducers/validate/validators.js b/src/reducers/validate/validators.js index 305ceb0..aa9f31d 100644 --- a/src/reducers/validate/validators.js +++ b/src/reducers/validate/validators.js @@ -7,7 +7,7 @@ import associationsSchema from './associationsSchema' import sourceSchema from './sourceSchema' import shapeSchema from './shapeSchema' -import { calcDatetime, capitalize, isFilterLeaf, isFilterDuplicate } from '../../common/utilities' +import { calcDatetime, capitalize } from '../../common/utilities' /* * Create an error notification object diff --git a/src/selectors/index.js b/src/selectors/index.js index c9592ed..1706b13 100644 --- a/src/selectors/index.js +++ b/src/selectors/index.js @@ -86,7 +86,7 @@ export const selectNarratives = createSelector( events.forEach(evt => { evt.associations.forEach(association => { const foundNarrative = narrativesMeta.find(narr => narr.id === association) - if (!!foundNarrative) { + if (foundNarrative) { const { id: narrId } = foundNarrative // initialise if (!narratives[narrId]) { narratives[narrId] = narrativeSkeleton(narrId) } @@ -104,7 +104,7 @@ export const selectNarratives = createSelector( const existingAssociatedNarrative = narrativesMeta.find(n => n.id === key) - if (!!existingAssociatedNarrative) { + if (existingAssociatedNarrative) { narratives[key] = { ...existingAssociatedNarrative, ...narratives[key]