Skip to content

Commit e7508f3

Browse files
committed
fix(gtfsplus): check for null tableData
1 parent d814cd8 commit e7508f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gtfsplus/selectors/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createSelector } from 'reselect'
33
const getActiveTable = createSelector(
44
[ state => state.gtfsplus.activeTableId, state => state.gtfsplus.tableData ],
55
(tableId, tableData) => {
6-
return tableData[tableId]
6+
return tableData && tableData[tableId]
77
}
88
)
99

0 commit comments

Comments
 (0)