From e7508f3804024e01e087a27a2ec0e16f4e608d2c Mon Sep 17 00:00:00 2001 From: Landon Reed Date: Fri, 29 Sep 2017 15:29:43 -0400 Subject: [PATCH] fix(gtfsplus): check for null tableData --- lib/gtfsplus/selectors/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gtfsplus/selectors/index.js b/lib/gtfsplus/selectors/index.js index db996027d..635062a15 100644 --- a/lib/gtfsplus/selectors/index.js +++ b/lib/gtfsplus/selectors/index.js @@ -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] } )