fix cannot read map of null error

This commit is contained in:
fernandomg 2020-07-15 18:44:44 -03:00
parent 5dbb095d4a
commit b9262ffdf0
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ export const MODULES_TABLE_ADDRESS_ID = 'address'
export const MODULES_TABLE_ACTIONS_ID = 'actions' export const MODULES_TABLE_ACTIONS_ID = 'actions'
export const getModuleData = (modulesList: List<ModulePair>): List<{ [MODULES_TABLE_ADDRESS_ID]: ModulePair }> => { export const getModuleData = (modulesList: List<ModulePair>): List<{ [MODULES_TABLE_ADDRESS_ID]: ModulePair }> => {
return modulesList.map((modules) => ({ return modulesList?.map((modules) => ({
[MODULES_TABLE_ADDRESS_ID]: modules, [MODULES_TABLE_ADDRESS_ID]: modules,
})) }))
} }