diff --git a/src/components/Card.jsx b/src/components/Card.jsx index 1a59040..7e0ba18 100644 --- a/src/components/Card.jsx +++ b/src/components/Card.jsx @@ -13,7 +13,7 @@ class Card extends React.Component { constructor (props) { super(props) this.state = { - isOpen: false, + isOpen: false } } @@ -142,7 +142,7 @@ class Card extends React.Component { render () { const { isSelected, idx } = this.props - return ( + return (
  • { - if (!(seen.has(evt.id))) { - seen.add(evt.id) - return evt - } - }) - } - handleSelect (selected, axis) { const matchedEvents = [] const TIMELINE_AXIS = 0 @@ -97,10 +87,10 @@ class Dashboard extends React.Component { ptr >= 0 && (events[idx].datetime).getTime() === (events[ptr].datetime).getTime() ) { - if (events[ptr].id !== selected.id) { - matchedEvents.push(events[ptr]) - } - ptr -= 1 + if (events[ptr].id !== selected.id) { + matchedEvents.push(events[ptr]) + } + ptr -= 1 } // check events after ptr = idx + 1 diff --git a/src/components/Toolbar/FilterListPanel.js b/src/components/Toolbar/FilterListPanel.js index 9e4eb4b..c3447f1 100644 --- a/src/components/Toolbar/FilterListPanel.js +++ b/src/components/Toolbar/FilterListPanel.js @@ -1,7 +1,6 @@ import React from 'react' import Checkbox from '../presentational/Checkbox' import copy from '../../common/data/copy.json' -import { merge } from 'lodash' /** recursively get an array of node keys to toggle */ function childrenToToggle (filter, activeFilters, parentOn) {