Skip to content

Commit

Permalink
fix(gtfsplus): check for null tableData
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Sep 29, 2017
1 parent d814cd8 commit e7508f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gtfsplus/selectors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createSelector } from 'reselect'
const getActiveTable = createSelector(
[ state => state.gtfsplus.activeTableId, state => state.gtfsplus.tableData ],
(tableId, tableData) => {
return tableData[tableId]
return tableData && tableData[tableId]
}
)

Expand Down

0 comments on commit e7508f3

Please # to comment.