From b9262ffdf00fc608640e4cf0ebeec9894a6d3877 Mon Sep 17 00:00:00 2001 From: fernandomg Date: Wed, 15 Jul 2020 18:44:44 -0300 Subject: [PATCH] fix cannot read map of null error --- src/routes/safe/components/Settings/Advanced/dataFetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/safe/components/Settings/Advanced/dataFetcher.ts b/src/routes/safe/components/Settings/Advanced/dataFetcher.ts index a62f6d6f..08483f68 100644 --- a/src/routes/safe/components/Settings/Advanced/dataFetcher.ts +++ b/src/routes/safe/components/Settings/Advanced/dataFetcher.ts @@ -6,7 +6,7 @@ export const MODULES_TABLE_ADDRESS_ID = 'address' export const MODULES_TABLE_ACTIONS_ID = 'actions' export const getModuleData = (modulesList: List): List<{ [MODULES_TABLE_ADDRESS_ID]: ModulePair }> => { - return modulesList.map((modules) => ({ + return modulesList?.map((modules) => ({ [MODULES_TABLE_ADDRESS_ID]: modules, })) }