Skip to content

Commit

Permalink
fix(ActiveEntityList): add enterTimetableEditor prop
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Mar 2, 2017
1 parent 8f2f5ce commit ad3606e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/editor/containers/ActiveEntityList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { connect } from 'react-redux'

import { enterTimetableEditor } from '../actions/active'
import { getEntityName } from '../util/gtfs'
import EntityList from '../components/EntityList'

Expand All @@ -16,12 +17,19 @@ const mapStateToProps = (state, ownProps) => {
id: entity.id
}
: null
const route = state.editor.data.tables.route
const hasRoutes = route && route.length > 0
return {
activeEntity
activeEntity,
hasRoutes
}
}

const mapDispatchToProps = (dispatch, ownProps) => { return { } }
const mapDispatchToProps = (dispatch, ownProps) => {
return {
enterTimetableEditor: () => dispatch(enterTimetableEditor())
}
}

const ActiveEntityList = connect(mapStateToProps, mapDispatchToProps)(EntityList)

Expand Down

0 comments on commit ad3606e

Please sign in to comment.